posted 17 years ago
<filter-mapping>
<filter-name>Filter1</filter-name>
<url-pattern>/Recipes/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter2</filter-name>
<url-pattern>/Recipes/HopsList.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter3</filter-name>
<url-pattern>/Recipes/Add/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter4</filter-name>
<url-pattern>/Recipes/Modify/ModRecipes.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter5</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Request PathFilter Sequence
------------ ----------------
/Recipes/HopReport.do---->1,5(ok)
/Recipes/HopsList.do---->1,5,2(why not 1,2,5 )
/Recipes/Modify/ModRecipes.do---->1,5,4(why not 1,4,5 )
/HopsList.do---->5(ok)
/Recipes/Add/AddRecipes.do---->1,3,5(ok)
Filter url matching sequence is determined by sequence in DD.
i.e if two or more url matches then there sequence will be determined by sequence in DD.
I have doubt in Request Path 2nd and Request Path 3rd
For 2nd path the sequence should be 1,2,5 as per DD sequence
Same way For 3rd path the sequence should be 1,4,5 as per DD sequence
Thanks