My web app has a servlet called admin which when navigated to checks if the user is logged in and if the are directs to the the admin section, but if they aren't it directs them to a JSP page with a sign-in form. The name of the JSP doesn't appear in the URL, it stays as /admin. But then when the JSP posts to another servlet to validate the sign-in credentials the url changes to /validate which is the name of the servlet. If the user validates they are forwarded to another JSP, but the URL still remains as /validate. How can I ensure the URL reflects what is being viewed in the browser?
Apologies if this isn't too clear.