Ok, I obtained a tutorial I found on the net and am trying to make it work on my application. So far, this is what I have:
The directory structure for my application goes like this:
webapps/scholastic/Login.jsp
webapps/scholastic/*.jsp
webapps/scholastic/admin/*.jsp
webapps/scholastic/WEB-INF/classes/servlets.class
Now, when I launch the browser and try to go to
http://localhost:8080/scholastic/Login.jsp AccessFilter kicks in and since there is no User object in the session object yet, authorized will remain false. The logic continues to the line:
filterConfig.getServletContext().getRequestDispatcher(login_page).forward(request, response);
But in the end I wind up with a Page Not Found 404 error.
I tried changing the <param-value>/scholastic/Login.jsp</param-value> to just <param-value>/Login.jsp</param-value> but this resulted in an endless loop condition with the
Tomcat container. "/scholastic/Login.jsp" is the correct relative URL. So I'm stuck at this point.
Please advise,
Alan
[ July 25, 2006: Message edited by: Alan Shiers ]
[ July 25, 2006: Message edited by: Alan Shiers ]
[ July 25, 2006: Message edited by: Bear Bibeault ]