myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: A question about <filter> in web.xml
Date Wed, 26 Sep 2007 10:57:58 GMT
Did you call chain.doFilter(request, response) in your doFilter method ?

The filter must explicitly tell the filter chain to proceed, otherwise it
does just nothing and returns without rendering anything.

    regards,

        Thomas


Thomas Chang <thomas2004ch@yahoo.de> schrieb am 26.09.2007 12:44:12:

> 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!


Mime
View raw message