Hi, i have a web application that use web authentication through "j_security_check" servlet; i need to add an extra parameter diferent of "j_password" and "j_username"; i guess that i have to put the extra parameter in the login form and in the definition of the realm; but where i have to include the code for the comparation of the new parameter.Thanks in Advanced.Jose Antonio Chirinos.
Jose,
tomcat (and all servlet spec compliant app servers) won't process any further parameters other than the two you mention. When you code your realm, you code a LoginModule or equivalent which is passed these 2 parameters.
This means the only option you have is to instruct the user to place the extra parameter on the end of the username, perhaps after an appropriate seperator character, so that you can then split your extra parameter from the user name in your realm code.
HTH Adam -- struts 1.1 + tomcat 5.0.14 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
