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

 
Vipul Tulsulkar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
jayaram parisineni
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
you can refer page no.678 for clarification.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess this question should be moved to the FAQ page ..
 
Sherif Shehab
Ranch Hand
Posts: 487
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic