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

login page redirect

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i use tomcat 4.0.2 and have form based authentication.
it all working fine.
i can restrict access to certain folder, by redirecting them to the login page.
the problem is, if someone accidently go to the login page directly, ie: http://localhost:8080/login/login.jsp, and enter the correct username and password, then errorpage "Apache Tomcat/4.0.2 - HTTP Status 400 - Invalid direct reference to form login page" will appear, instead of redirecting the user to the main page.
so, what should i do, in order to redirect successful login user to the main page, if they access the login page directly?...
 
reply
    Bookmark Topic Watch Topic
  • New Topic