Seems like it interrupts execution of filter chain? Try adding adding
chain.doFilter(request, response) on doFilter() method
-----Original Message-----
From: Thomas Chang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2007 6:44 PM
To: [email protected]
Subject: A question about <filter> in web.xml
Hi all,
I've create a web application with myfaces and it runs well till now.
But after I fill an own filter in the web.xml, I can't see the GUI
anymore. The page is just a blank page. Why?
The filter I filled into the web.xml looks as follow:
******
...
<filter>
<filter-name>JPAFilter</filter-name>
<filter-class>cashregister.persitence.JPAFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JPAFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
...
And the JPAFilter.java looks as follow which just implents the
javax.servlet.Filter and all the functions hat no content:
******
public class JPAFilter implements Filter {
private static Logger log = Logger.getLogger( JPAFilter.class );
public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain) throws IOException,
ServletException {
;
}
public void init(FilterConfig arg0) throws ServletException {
;
}
public void destroy() {
;
}
}
________________________________
Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN!
<http://de.rd.yahoo.com/evt=48734/*http:/de.promotions.yahoo.com/clever/
be-a-better/medizinmann.html>