Hi All,
Thanks for reading this post.
I am working with WAS 5.0.2 which uses Servlet 2.3. For Servlet Filters Servlet 2.3 has a limitation for Filters to function only for direct user request.I have welcome page named index.jsp. I defined a filter for the URL /index.jsp. This filter will get executed only when there is a user request /mysite/index.jsp, but if there is a request for /mysite the container is directly invoking index.jsp without calling the filter. I can't modify my index.jsp because it has been generated by few java classes and the source code is not available.
Is there any work around to invoke the filter when there is a request without specifying index.jsp meaning http://localhost/mysite.
Thanks in Advance
Regards,
Gautham
-
Servlet Filter before Welcome Page (3 messages)
- Posted by: Gautham GV
- Posted on: June 06 2005 18:22 EDT
Threaded Messages (3)
- Servlet Filter before Welcome Page by Joseph Ottinger on June 07 2005 06:22 EDT
- Servlet Filter before Welcome Page by Gautham GV on June 07 2005 21:18 EDT
- Servlet Filter before Welcome Page by Sergei Batiuk on July 12 2005 08:44 EDT
- Servlet Filter before Welcome Page by Gautham GV on June 07 2005 21:18 EDT
-
Servlet Filter before Welcome Page[ Go to top ]
- Posted by: Joseph Ottinger
- Posted on: June 07 2005 06:22 EDT
- in response to Gautham GV
What happens if you define the filter for / as well as /index.jsp? -
Servlet Filter before Welcome Page[ Go to top ]
- Posted by: Gautham GV
- Posted on: June 07 2005 21:18 EDT
- in response to Joseph Ottinger
Thanks for the replay
'/*' would make my filter to intercept for each and every request, but I want interception to happen only for index.jsp which I will specify in welocome list
Gautham -
Servlet Filter before Welcome Page[ Go to top ]
- Posted by: Sergei Batiuk
- Posted on: July 12 2005 08:44 EDT
- in response to Gautham GV
Try "/", not "/*".