This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can not compile filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can not compile filter" Watch "Can not compile filter" New topic

Can not compile filter

Raj Puri
Ranch Hand

Joined: Apr 24, 2003
Posts: 189
I have J2SDK.1.4.2 hre is a stndard code I use:

import javax.servlet.*;
import javax.servlet.http.*;
public class check_user implements Filter
private FilterConfig filterConfig = null;



When I compile it says unresolved symbol: Filter. Do I need to downlaod something else also for it compile. Thanks.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

implements ServletContextListener{

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Can not compile filter
Similar Threads
Filter not getting called
Q: Filter on Page 668 and page 695
Tomcat 4.0 problem with Filter class
JSP Filter with Struts
How to configure Tomcat to log POST data?