tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: form auth: how to get user name if login was incorrect
Date Tue, 14 Aug 2001 13:28:27 GMT


> -----Original Message-----
> From: Rob S. [mailto:rslifka@sfu.ca]
> Sent: Tuesday, August 14, 2001 9:32 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: form auth: how to get user name if login was incorrect
> 
> 
> 
> 
> On Tue, 14 Aug 2001 14:00:46 +0200 
> tomcat-user@jakarta.apache.org wrote:
> > > > How to get a user name (and password) with form authentication,
> > > > if authentication was not successful and user was sent to error
> > > > page. Is this information lost at this moment or can I get it
> > > > somehow?
> > 
> > > From: Randy Layman>
> > > I believe that its in the seesion.getAttribute("j_username").
> > > I might be wrong about that (I have modified my local copy of that
> > > code.
> > 
> > If I call session.getAttribute("j_username") on an error page, the
> > result is null.
> > 
> > What modifications did you do?
> 
> If you have to modify Tomcat to do it, that means your web 
> app will only
> ever run on your modified copy of Tomcat.  If you move to 
> JRun, ServletExec,
> or any other commercial container, you will not be able to 
> modify the source
> code.  The servlet specification exists for a reason =)
> 

But if you need to do things that Tomcat can't allow you to do (have three
criteria for login), then you don't have much of a choice - at least you can
modify the source instead of complaining to Tech support and not having any
other options.

	Randy

Mime
View raw message