On Tue, 15 Jan 2002, Ing. Gabriel Gajdos wrote:

> Date: Tue, 15 Jan 2002 11:01:59 +0100
> From: Ing. Gabriel Gajdos <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: User Registration Login Problem
>
> Craig, is there a way to determine the requested URL in login page?
>

Sure ... do an XML parse of "/WEB-INF/web.xml" and look for the
appropriate element (<form-login-page>).

> This could help in following way:
> The link to registration could contain a "GET" parameter such as
> <A href="registration.jsp?RequestPage=page1.jsp">registration</A>
> The registration file could work with this parameter and use it for
> redirect (or whatever) after the registration is completed.
>

Having this URL won't do any good, however -- the only time that the
container handles the "j_security_check" POST request is when the
*container* (not the application or the user) requests the login page.

If you really want newly registered users to be logged in without going
through the dialog again, you need to forego the use of container managed
security entirely, and roll your own.

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to