Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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
 
The first person to drink cow's milk. That started off as a dare from this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic