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

Are you proposing that the <filter> element would take only a single <url-pattern>, or would it take multiple <url-pattern>s?

What about <servlet-name> style mappings?

Would this be a replacement for the <filter-mapping>, or in addition to them? The merging rules across web.xml/web-fragment.xml for the <url-pattern> (<servlet-name>?) portion of the <filter> would be as per the merging rules for <filter-mapping>?

Jan

On Fri, 30 Apr 2021 at 07:51, 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


--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


Back to the top