On Mon, 25 Nov 2002, Matt Raible wrote:
> Date: Mon, 25 Nov 2002 17:02:21 -0700 > From: Matt Raible <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: 'Tomcat Users List' <[EMAIL PROTECTED]> > Subject: Form-based authentication - can I get original URL? > > On Tomcat 4/5, I am able to use the following configuration in my > web.xml: > > <login-config> > <auth-method>FORM</auth-method> > <form-login-config> > <form-login-page>/login.jsp</form-login-page> > <form-error-page>/login.jsp?error=true</form-error-page> > </form-login-config> > </login-config> > > > However, I know that there are app servers out there that do not support > this - the form-error-page MUST be a different JSP. So I'm wondering, > is there a value I can grab in my login.jsp that tells me the URL of the > protected resource the user is trying to get to? > > I tried <%=request.getRequestURL()%>, but that gives me .../login.jsp - > and I want mainMenu.do. > > I know iPlanet used to set a cookie and I could use that as specified > at: > > http://husted.com/struts/resources/fb-auth.htm There is no portable mechanism to acquire the request URL that was originally requested, nor any guarantee that this is even possible. All you know is that the container has detected that a protected URL was requested, and that there was no currently authenticated user. > > Thanks, > > Matt > Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
