Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

filter-mapping and invocation sequence

 
Esam Ahmed
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Esam Ahmed
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic