• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

filter mapping

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
can anybody help me in solving the excercise on HFSJ pageno.680 & explain me which steps I am suppose to follow to get a correct order of execution of filters?:confused

Regards,
Vipul
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is your current understanding of the order of execution of filters?
 
Vipul Tulsulkar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I tried to solve the excercise on HFSJ page No.680.I could recognize which filters will execute but but I failed to answer their order.e.g.In one example,I answered 1,2,5 but the order is 1,5,2.Why is it so?

Vipul
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If you see in the <filter - mapping> tag two elements we can give one is <servlet-name> and <url-pattern>.First it will goes in the order of <url-pattern> tag at the end of <url-pattern> order it will add the <servlet-name> resouce.thats why order is like that.
I think it is helpful for you
If you can't understand please let me know.

Thanks,
Jayaram
 
jayaram parisineni
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can refer page no.678 for clarification.
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i guess this question should be moved to the FAQ page ..
 
Ranch Hand
Posts: 493
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by jayaram parisineni:
Hi,
If you see in the <filter - mapping> tag two elements we can give one is <servlet-name> and <url-pattern>.First it will goes in the order of <url-pattern> tag at the end of <url-pattern> order it will add the <servlet-name> resouce.thats why order is like that.
I think it is helpful for you
If you can't understand please let me know.

Thanks,
Jayaram



hi pals,

ya i was confused too in this question but thanks for Jayaram's note , so this means all url-pattern ordered then servlet -name... sounds good
reply
    Bookmark Topic Watch Topic
  • New Topic