Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [servlet-dev] Cosmetic change - nest URL patterns in Filter/Servlet



On Fri, 30 Apr 2021 at 10:16, Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx> wrote:
Would that result in a nameless Filter?
or a Filter that always has the same name as the filter-class?

The name could be auto generated as it is for annotations, or the user can still set it directly:

<filter>
    <filter-name>MyFilter</filter-name>
    <filter-class>org.example.Filter</filter-class>
    <mapping>
        <url-pattern>/SomePath</url-pattern>
    </mapping>
</filter>

 
--

Back to the top