File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with FORM based authentication" Watch "problem with FORM based authentication" New topic
Author

problem with FORM based authentication

Meg Adal
Ranch Hand

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

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

When I access localhost:8080/login/secured/home.do ,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
Hi

check the change in this code



Bye for now
sat

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 home.do needs authentication, all other .do actions run some business logic and don't need authentication
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with FORM based authentication