how to apply filters in jsf

Posted by johnbritto on Stack Overflow See other posts from Stack Overflow or by johnbritto
Published on 2010-04-12T06:41:46Z Indexed on 2010/04/12 6:43 UTC
Read the original article Hit count: 245

Filed under:

Hi

      I have filter code   Page not Found error while any client request  for Jsf Page in my  Jsf application.I dont Know How to  Fix this issue

This is My Filter Code:

HttpServletRequest req =(HttpServletRequest)request; HttpServletResponse res =(HttpServletResponse)response; HttpSession ses = req.getSession(true); String pageRequested =req.getRequestURL().toString(); if (ses.getAttribute("userDetails")!=null) {

fc.doFilter(request,response);      

}else{ RequestDispatcher dis = request.getRequestDispatcher(LOGIN_PAGE); dis.forward(request,response); } This code inside the DoFilter Method I done all The settings in Web.xml deployment Descriptor

© Stack Overflow or respective owner

Related posts about jsf