• 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

How to make request parameters available to a login.jsp?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a secured resource in Tomcat or JBossWeb. My resources are secured via FORM authentication (j_security_check). The secured resources are requested via an external page like this:



When the secured resource is requested, Tomcat displays the login.jsp to authenticate the user. This my login.jsp. I have a business requirement that needs to access the "mydata" request parameter from this page. DOES ANYONE KNOWS HOW TO MAKE TOMCAT TO ALLOW ACCESS TO THE REQUEST PARAMETERS FROM THIS PAGE??? The values are always null when the request are via a "post". However, this works when the request is via a "get" I cannot change my forms to "get" that is just not possible. And I have tried this in JBoss5, GlassFish2.1, and Tomcat5.5.7 We currently have our app running in JBoss3.2.7 and it works fine here. But we are planning to upgrade out of JBoss3.2.7 into a newer version. Given that we get the same behavior in the newer servers, we think that there most be a configuration setting that we don't know about. If anyone has any idea what we need to do, please please help us out. Thanks in advance!

This is my login.jsp, which is configured in the <form-login-page>



 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please avoid typing in all uppercase. Please read this for more information. As this appears to be Tomcat-specific, I've moved this to the Tomcat forum.
 
Alex Fishell
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As a side note, I have tried this example with the following: JBoss 5, GlassFish 2.1, Tomcat 5, Tomcat 6.
 
reply
    Bookmark Topic Watch Topic
  • New Topic