• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Hide j_security_check on login retry

 
Ranch Hand
Posts: 86
2
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to create a simple application, that uses container based form authentization (Tomcat 7 + Active Directory). I'm reusing my login page also for retries on failed attempts. It works just fine, except that on retry the j_security_check appears in the URL.

Here is the relevant part of my application WEB-INF/web.xml:

This is login.jsp:

When the user login fails, the login form is displayed again (with the error message), which is wanted behaviour, but the URL becomes /myapp/j_security_check instead of /myapp/, which is what user initially sees when login form displays for the first time. Is there a way to get the behaviour I want without exposing the j_security_check?
 
I'm all tasted up for a BLT! This tiny ad wants a monte cristo!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic