Hey!. I have a problem with Filters and JSF/IceFaces frameworks... I have such piece of my code: public class LoginFilter implements Filter {
private FilterConfig filterConfig = null; public LoginFilter() { } public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { String user = (String) ((HttpServletRequest) request).getSession().getAttribute("validuser"); if (user == null) { ((HttpServletResponse) response).sendRedirect("login.iface"); } chain.doFilter(request, response); } public void destroy() { } public void init(FilterConfig filterConfig) { this.filterConfig = filterConfig; } } and in web.xml I have: <filter> <filter-name>LoginFilter</filter-name> <filter-class>moje.LoginFilter</filter-class> </filter> <filter-mapping> <filter-name>LoginFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</dispatcher> </filter-mapping> This filter isn't writing nothing - even System.out.println() isnt writing nothing on GlassFish Output Console. I'm afraid that it isnt working with IceFaces :( Can you help me? -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en