On Thu, 21 Jun 2001 [EMAIL PROTECTED] wrote:
> On Thu, 21 Jun 2001, Michael Jennings wrote:
>
> > Okay,
> >
> > I was being stupid. I understand now, with form-based authentication when
> > you
> > request /mywebapp/private/somefile.jsp what you get back should just be
> > generated from the login page, then when you submit your credentials,
> > it returns whatever is generated from /mywebapp/private/somefile.jsp
>
> That would be nice - if possible. I spent quite a bit of time finding
> workarounds that would allow such a behavior.
>
> If the login page would be displayed all the <a href="" /> or <img> in the
> login page will be treated by the browser as relative to
> /mywebapp/private, while the login page can be somewhere else.
>
The form login page should use server-relative URLs, or a <base> tag
in the <head> section. That way, the initial display of the login page
will work correctly even on a container that does (what amounts to) a
RequestDispatcher.forward() to the login page.
> > So the redirection thing is just how it is implemented right now.
> >
> > Stupid me.
>
> Probably it's me the one - since everyone seems to know how to implement
> such a thing except me.
>
> Costin
>
>
Craig