• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

filter mechanism in Servlets

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How filter mechanism works in SERVLETS 2.3. Pl. give with an eg.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Pradeep Manjeshwar:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html


Nice link
Now I am still puzzled over two things:
1) What is the order that multiple filters mapped to same resource are chained ie. which one gets in first?
2) Can filter disable itself?
 
G Subrahmanyam
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order of execution is determined by the ordering in the deployment descriptor.
 
Pradeep bhatt
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.The order of the filters in the chain is the same as the order that filter mappings appear in the web application deployment descriptor.
2. I did not get ur q.

Originally posted by Antti Barck:

Nice link
Now I am still puzzled over two things:
1) What is the order that multiple filters mapped to same resource are chained ie. which one gets in first?
2) Can filter disable itself?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by subrahmanyam gampa:
The order of execution is determined by the ordering in the deployment descriptor.


Okie, but which way? I did some experiencing and found out that first gets last in chain?
Well, actually this is no more relevant issue for me since I figured out that filters can be configured in a manner that makes no difference with the order.
Thanks anyways, both of you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic