First of all, I am not sure that you need <realm-name>
in teh web.xml if you user form-based authentication.

You may use getRemoteUser() to get the name of the
user.
--- Giselle Dazzi <[EMAIL PROTECTED]> wrote:
> Hi everybody,
> 
> Im using the <security-constraint> feature of
> Tomcat. Everything works well, but I dont know how
> to retrieve the login entered during authentication
> to use it throughout my application... Have you guys
> done this before ?
> 
> thx
> 
> My login page is specified in my web.xml:
> 
> <login-config>
>       <auth-method>FORM</auth-method>
>       <realm-name>Autenticacao</realm-name>
>       <form-login-config>
>        
> <form-login-page>/login.jsp</form-login-page>
>        
> <form-error-page>/errorpage.html</form-error-page>
>       </form-login-config>
>     </login-config>  
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to