aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Servlet Filtering doesnt work on iPlanet 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Servlet Filtering doesnt work on iPlanet 6" Watch "Servlet Filtering doesnt work on iPlanet 6" New topic
Author

Servlet Filtering doesnt work on iPlanet 6

Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hi all,
I am on iPlanet 6 as,
iPlanet-WebServer-Enterprise/6.0 B05/18/2001 11:18
Now, I face one issue. I am trying to use filtering via servlet filter API. I have following entry in my web.xml file,

In TestFilter1.java I don't do anything. I just print a message in doFilter() and the do chain.doFilter() call.
This filter applies to all requests to jsp pages and servlets but not to the static resources like html files. So,
1. if I query,
http://myserver.com/contextname/jsp/x.jsp it works (I see the message that I print in doFilter() method
2. if I query,
http://myserver.com/contextname/html/y.html then it doesn't work (I dont see the message I am printing in doFilter() method). This means that doFilter() doesn't get called.
Also, it doesn't matter where I put JSP pages. It works for them. So if I have,
http://myserver.com/html/z.jsp then I see the message in doFilter() which means regardless of any directory structure it works for JSP/servlets but not for "static" content...
I tried the same with Tomcat405 and it works fine there.
Does anybody know what is going on here?
Thanks!
Maulin
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
I am on Webserver. I am not using Sun ONE App server but I thought this post might get response here. Moderators, please move this post to appropriate forum if you feel.
Regards
Maulin
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
Hello Moderator,
Can you please move this to Java Advanced forum?
Regards
Maulin
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet Filtering doesnt work on iPlanet 6