Is that because your getRemoteUser() isn't set by the web server?
Just curious why to use getUserPrincipal().getName() instead.
I guess it is more JAAS compatible?


-----Original Message-----
From: Mike Thompson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2003 2:21 PM
To: Struts Users Mailing List
Subject: RE: FORM based Auth and Struts

That's what we've used in our application.  The container is supposed to
manage setting the principal, etc in the request so long as you use
container based auth.  This should be portable across containers.
        --m


-----Original Message-----
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Re: FORM based Auth and Struts




Mike Jasnowski wrote:
> I am (with Struts 1.1 and WLS) and haven't had any issues. Although the
> login form I use doesn't use the Struts form tag, but just an HTML <FORM>
> tag directly.

After doing this, is the best way to get the username with 
"getUserPrincipal().getName()"?

Just curious how others prefer to access the username from their 
application code (as opposed to the container's own code).



Erik


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


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

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

Reply via email to