Originally posted by David O'Meara:
Just to be sure: I'm assuming the different Logout form mapping and code sample package doesn't have anything to do with it?
Nah, that was just a mistake in my cutting/pasting and editing of the message.
After posting my message, I wondered whether the fact that my login page was named "login.html" (rather than "login.jsp") would have something to do with it. So I tried renaming the file to "login.jsp" (even though it doesn't currently have any
JSP code in it) and made the corresponding changes to the web.xml and Logout.java code. Then when I logged out, I got this message:
HTTP Status 400 - Invalid direct reference to form login page
Okay, so apparently trying to go directly to login.jsp is a no-no. So I changed my Logout.java code to forward to the main page of the web app, on the assumption that it would instead redirect to display the login page. Instead, it displayed the main page, but would not display an image that was on the page. Apparently, since the Logout servlet said to display the page, that was allowed, but none of the stuff requested by that page would be allowed until the user logged in.
Hmm... Still stuck! Any ideas?