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

Would that result in a nameless Filter?
or a Filter that always has the same name as the filter-class?

On Thu, Apr 29, 2021 at 4:51 PM arjan tijms <arjan.tijms@xxxxxxxxx> wrote:
Hi,

Quite often I see patterns like the following: n I see 

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

What about making it a little more compact as an option and allow for:

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

Thoughts?

Kind regards,
Arjan Tijms

_______________________________________________
servlet-dev mailing list
servlet-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/servlet-dev

Back to the top