On Tue, 14 Aug 2001 14:00:46 +0200 [EMAIL PROTECTED] 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 =)

- r

Reply via email to