servlet filter mapping rules
satya - Monday, December 27, 2010 2:48:17 PM
servlet filter mapping rules
servlet filter mapping rules
satya - Monday, December 27, 2010 2:52:03 PM
A nice document on matching rules
satya - Monday, December 27, 2010 2:57:31 PM
Accoding to the note above
a request may match more than one mapping
An exact match is prefered over the wild card
Prefers the longest match
Prefers path matches over file type matches
If none matches it can invoke a default servlet specified as path "/"
satya - Monday, December 27, 2010 2:59:58 PM
Example of a default match
<servlet-mapping>
<servlet-name>SomeDefaultServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>