I need to write a code, that will be redirecting to different *.jsp sites depending on whether user is logged on or not logged on. I found a hint, that I can use filter to do it and I need to use doFilter or/along with init methods. Any ideas?
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain) throws IOException, ServletException {
}
public void init(FilterConfig config) throws ServletException {
}