how to apply filters in jsf
- by johnbritto
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