jQuery in Action, 3rd edition
The moose likes JSP and the fly likes Filters....not working for me :( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Filters....not working for me :(" Watch "Filters....not working for me :(" New topic

Filters....not working for me :(

Pavan Chowdary

Joined: Nov 08, 2001
Posts: 2
public class FilterServlet implements Filter
public void doFilter(ServletRequest req , ServletResponse resp , FilterChain fchain) throws IOException , ServletException
if (!req.isSecure())
System.out.println("inside filter....");
fchain.doFilter(req , resp);
public void destroy()
public void init(FilterConfig config) throws ServletException
when i access a.jsp ...above filter class is not printing appropriate system.out.

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Try this:
URL pattern should start with a /
- satya
Not sure if you are still around

Take a Minute, Donate an Hour, Change a Life
I agree. Here's the link: http://aspose.com/file-tools
subject: Filters....not working for me :(
It's not a secret anymore!