This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Submitting additional information during authentication? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Submitting additional information during authentication?" Watch "Submitting additional information during authentication?" New topic
Author

Submitting additional information during authentication?

Kelly Dolan
Ranch Hand

Joined: Jan 08, 2002
Posts: 109
I have form authentication working. In my deployment descriptor, I have the following along with the appropriate html files that describe the form submit to 'j_security_check' and acquire values for 'j_username' and 'j_password'.
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/denied.html</form-error-page>
</form-login-config>
</login-config>

I need to acquire another value on the login page (e.g., the role that the user wants to assume). Can I do this or is the login page restricted to only acquiring the username and password fields? I've tried placing other form fields in the html and using request.getParameter() to obtain my value but I'm not having much luck.
Thanks!!! Kelly
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Submitting additional information during authentication?
 
Similar Threads
Security AuthenticationProviders & returning a value
security-constraint question
login-config question
login config resource not available
Unable to get Authentication popup window