tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <>
Subject Re: How to identify automatically in spite of a Realm
Date Wed, 26 Jan 2005 05:57:40 GMT
Try this. In your servlet that you submit your signup form to, for the user 
data, return to the user as a response a login form with the username and 
password values set. In the body tag place


where lform is the name of the form.

This should immediatly submit the form and log in the user. You may wish to 
include instructions for the user to press submit in the event the browser 
does not fire the onload command.

You will also want to set the URI to where they want to go.

I have not done this. But it should work in theory.


----- Original Message ----- 
From: "Philippe Mathieu" <>
To: <>
Sent: Tuesday, January 25, 2005 6:08 PM
Subject: How to identify automatically in spite of a Realm

>I develop a war with Tomcat 5.0.28 and in this application some users are 
>already known by the system
> and must be authentified (via a Realm and LOGIN form) to acces to private 
> JSP, and
> new users must give information via a public JSP to be known (like login 
> and password choosen but also
> other informations) and  then redirected to the private zone.
> My pb is that I am an not able to automatically log a new user after he 
> has given his information.
> In spite of he has given his login/password on the public JSP, the user 
> will be asked once again for
> his login/password by the Authenticated Form from the Realm when he will 
> access to the private zone.
> thus he will give his login/password twice :-(
> How to avoid That ?
> -- 
> Phil
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message