Below code not working... why?

package filters;

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;


public final class FilterServlet implements Filter {

private FilterConfig filterConfig = null;
public void destroy() {
this.filterConfig = null;
}

public void doFilter(ServletRequest req ,
ServletResponse resp , FilterChain fchain) throws
IOException , ServletException {
if (!req.isSecure()){
System.out.println("inside filter....");
fchain.doFilter(req , resp);
}else {
System.out.println("sfasfdsdfaf");
}
}
public void init(FilterConfig config) throws
ServletException{
}

}


my web.xml

 <filter>
   <filter-name>Secure</filter-name>
   <filter-class>filters.FilterServlet</filter-class>
   </filter>
   <filter-mapping>
   <filter-name>Secure</filter-name>
   <url-pattern>*.jsp</url-pattern>
</filter-mapping>

when i try to access say a.jsp - I dont see any output
from doFilter in stdout.log

Any help? ;-)



__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to