• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

filter-mapping and invocation sequence

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1026
 
Esam Ahmed
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic