File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes problem with FORM based authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with FORM based authentication" Watch "problem with FORM based authentication" New topic

problem with FORM based authentication

Meg Adal
Ranch Hand

Joined: Mar 12, 2002
Posts: 70
web.xml file

So basically request to /secured/ is handled by login.jsp before being passed to webcontroller servlet.

When I access localhost:8080/login/secured/ ,I am directed to login.jsp ,if I enter incorrect password I am directed to error.jsp.

error.jsp is:

so error page has nothing but link to login.jsp

But the problem is when I click on this link it looks for /secured/login.jsp not login.jsp and I get HTTP 404 ,page not found error.

So what should I use as URL here?

Thanks in advance
[ July 29, 2005: Message edited by: Meg Adal ]
satishkumar janakiraman
Ranch Hand

Joined: May 03, 2004
Posts: 334

check the change in this code

Bye for now

NEP - edited to remove page widening...
[ August 02, 2005: Message edited by: Nathan Pruett ]
Meg Adal
Ranch Hand

Joined: Mar 12, 2002
Posts: 70
Thanks for reply,

but we can't use *.doas only needs authentication, all other .do actions run some business logic and don't need authentication
I agree. Here's the link:
subject: problem with FORM based authentication
It's not a secret anymore!