GeeCON Prague 2014*
The moose likes Servlets and the fly likes Filter Bypass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter Bypass" Watch "Filter Bypass" New topic
Author

Filter Bypass

Sondra Colagrossi
Ranch Hand

Joined: Oct 30, 2002
Posts: 68
In the j2ee tutorial they talk about this filtering process available under the 2.3 spec. See the page here.
Now over in the Websphere Forum this guy says the filter is bypassed on refresh or when the servlet is bookmarked. That is, if I am reading what he is saying correctly.
Is this true about the bypass?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
this guy says the filter is bypassed on refresh or when the servlet is bookmarked
I can't find that in the referenced thread. And I'd be surprised if I did, because it would be wrong.
A servlet filter catches ever request it is mapped to, however it originated. clicking a bookmarked page, or clicking the refresh button in a browser window send a request for the same URL as if you had clicked on a link or typed it in the address bar bt hand. The filter will be invoked in all these cases.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Sondra Colagrossi
Ranch Hand

Joined: Oct 30, 2002
Posts: 68
You are correct. He talks about a refresh tag to get around the logging process. I am not clear what he speaks of here, unless this is on the order of a synchronizer token. This token is documented on page 27 of Core J2EE Patterns 2nd Ed.
Thanks for your input.
 
GeeCON Prague 2014
 
subject: Filter Bypass