aspose file tools
The moose likes Servlets and the fly likes Filters and HTTP variables Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Filters and HTTP variables" Watch "Filters and HTTP variables" New topic
Author

Filters and HTTP variables

Sita Kodali
Ranch Hand

Joined: Dec 02, 2001
Posts: 72
Hi there
Implementing filters does not seemt to be straight forward.
I was working on a filter that reads cookies placed by a previous page and perform filtering activity based on them. However, in my doFilter(ServletRequest, ServletResponse, FilterChain) method, after or before casting ServletRequest to HttpServletRequest, I can not read cookies (believe, there exist cookies and they can be read using any jsp or servlet or even javascript).
In just plain filters speak, it does not work and you can't read any Http related server variables.
But there is an ugly hack - add some servlet related stuff and it works!
Does anyone have seen this behaviour (with Tomcat4.x on Windows and linux).
Regards
--
Venkat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Filters and HTTP variables
 
Similar Threads
What's the difference between ServletRequest and PageContext?
different Scopes In expression language(EL)
Servlet doubts continued
ValueListHandler and cahing
doubt from hanumant book