• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

problem with FORM based authentication

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
We don't have time to be charming! Quick, read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic