Skip to main content

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

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


Back to the top