I have created the following session listener class which works but now I
want to redirect the client to the start page of the application if they are
trying to enter the application from another page.

Easy peasy lemon squeezey in asp using global.asa but at a loss with java.

Any help greatly appreciated.

Code shown below.

Ron Quartel.



import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SessionListener implements HttpSessionListener{

    public SessionListener() {
    }

    public void sessionCreated(HttpSessionEvent hse) {
        System.out.println("Session started");
        //redirect to start page if not alread there i.e index.jsp.
    }

    public void sessionDestroyed(HttpSessionEvent hse) {}

}

Reply via email to