aspose file tools*
The moose likes Tomcat and the fly likes How to make request parameters available to a login.jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to make request parameters available to a login.jsp?" Watch "How to make request parameters available to a login.jsp?" New topic
Author

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

Alex Fishell
Greenhorn

Joined: Oct 15, 2002
Posts: 5
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>



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alex Fishell
Greenhorn

Joined: Oct 15, 2002
Posts: 5
As a side note, I have tried this example with the following: JBoss 5, GlassFish 2.1, Tomcat 5, Tomcat 6.
 
jQuery in Action, 2nd edition
 
subject: How to make request parameters available to a login.jsp?