Forums Register Login

filter-mapping and invocation sequence

+Pie Number of slices to send: Send
Hi ranchers..

Confused about filter invocation sequence...
Following is from JFS/J (I didn't understand the rules)
Please explain...




From HFS/S (page 680)

Based on the following DD fragment, write down the sequence in which the filters will be executed for each request path. Assume Filter1 through Filter5 have been properly declared

<filter-mappling>
<filter-name>Filter1<filter-name>
<url-pattern>/Recipes/*</url-pattern>
</filter-mapping>

<filter-mappling>
<filter-name>Filter2<filter-name>
<url-pattern>/Recipes/HopsList.do</url-pattern>
</filter-mapping>

<filter-mappling>
<filter-name>Filter3<filter-name>
<url-pattern>/Recipes/Add/*</url-pattern>
</filter-mapping>

<filter-mappling>
<filter-name>Filter4<filter-name>
<url-pattern>/Recipes/Modify/ModRecipes.do</url-pattern>
</filter-mapping>

<filter-mappling>
<filter-name>Filter5<filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

Reques path: Sequence ?
/Recipes/HopsReport.do ??
/Recipes/HopsList.do ???
/Recipes/Modify/ModRecipes.do ???
/Recipes/Add/AddRecipes.do ???




Thanks much...
Esam
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
Thanks vishnu,

I got it right away...
I overlooked the <servlet-name> element in the second/fourth filter mapping !!!
Also, my post had some typos...

Makes perfect sense now...

ThaX

Esam
[ September 16, 2005: Message edited by: Esam Ahmed ]
get schwifty. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 516 times.
Similar Threads
Filter Mapping
filter-mapping doubt??
Doubt in HFSJ sharpen pencil page 695
Pno-:695 HFS&JSP Filter Sequence
Filter sequence question in Head first book
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:29:18.