You should code your own Realm and refer to it in server.xml. Container-managed app will use this custom-realm to authenticate the user. Warning: this works in Tomcat only! (I'm not sure if version 3 supports it though).
On Wed, 24 Jul 2002 12:09:59 -0400 "Rajesh Kalluri" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have set up container managed authentication with tomcat with form based > login. > > <login-config> > <auth-method>FORM</auth-method> > <form-login-config> > <form-login-page>/LoginForm.html</form-login-page> > <form-error-page>/LoginError.html</form-error-page> > </form-login-config> > </login-config> > > -The entry point to my app is LoginForm.html. > > <form method="POST" action="j_security_check"> > > Username: <input type="text" name="j_username"><br /> > Password: <input type="password" name="j_password"><br /> > <br /> > > <input type="submit" value="Login"> > <input type="reset" value="Reset"> > > </form>. > > I let Tomcat take care of authenticating the users password and his role. > > I want to store the user profile including his email and some other > information from the database into session scope based on <%= > request.getRemoteUser() %>. > > At what stage is it recomended to do this in a struts application using > contianer managed authentication. > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ********************************************************************** Financiere Banque Nationale et NBCN n'assument aucune responsabilite quant a la confidentialite et l'integrite du present courriel en raison des risques d'interception inherents a l'Internet. Pour cette raison, toute opinion exprimee au terme des presentes ne reflete pas necessairement celle de Financiere Banque Nationale et de NBCN. ********************************************************************** Due to the security risks involved in sending information over the Internet, National Bank Financial and NBCN cannot be held responsible for ensuring the confidentiality and integrity of the present e-mail. For this reason, the opinions expressed herein do not necessarily reflect those of National Bank Financial and NBCN. ********************************************************************** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>