Re: Newbie FORM authentication problems with a Struts app - TC 5.0.25
try this. html:form action=/j_security_check.do On 15 Jun 2004, at 11:15, Adam Lipscombe wrote: Folks, Apologies - this may be a Tomcat issue rather than Struts. I am trying to configure Tomcat FORMS based authentication with a JDBC realm (MySQL). I have added the MySQL driver to the server.xml and configured the Login.jsp page thus: html:form action=j_security_check method=POST table width=25% border=0 align=center tr tddiv align=rightbean:message key=login.userID//div/td tdhtml:text name=j_username property=userID size=15//td /tr tr tddiv align=rightbean:message key=login.password//div/td tdhtml:password name=j_password property=password size=15//td /tr /table br / table width=15% border=0 align=center tr td width=50%div align=center input type=submit name=Submit value=Login /div/td td width=50%div align=center input name=Clear type=reset id=Clear value=Clear /div/td /tr /table /html:form When I start TC I get the error message Cannot retrieve mapping for action /j_security_check. It looks like the j_security_check action is being treated as a normal struts action mapping. Can anyone throw any light on this? TIA - Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie FORM authentication problems with a Struts app - TC 5.0.25
Thanks, but this produces the error message: javax.servlet.ServletException: Cannot retrieve mapping for action /j_security_check As far as I know TC should treat the jsecurity_check action specially - it should know that this is a authentication request. It seems to me that TC is not doing this and passing it onto the Struts libs for processing. Any ideas? Cheers - Adam -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 15 June 2004 11:10 To: Struts Users Mailing List Subject: Re: Newbie FORM authentication problems with a Struts app - TC 5.0.25 try this. html:form action=/j_security_check.do On 15 Jun 2004, at 11:15, Adam Lipscombe wrote: Folks, Apologies - this may be a Tomcat issue rather than Struts. I am trying to configure Tomcat FORMS based authentication with a JDBC realm (MySQL). I have added the MySQL driver to the server.xml and configured the Login.jsp page thus: html:form action=j_security_check method=POST table width=25% border=0 align=center tr tddiv align=rightbean:message key=login.userID//div/td tdhtml:text name=j_username property=userID size=15//td /tr tr tddiv align=rightbean:message key=login.password//div/td tdhtml:password name=j_password property=password size=15//td /tr /table br / table width=15% border=0 align=center tr td width=50%div align=center input type=submit name=Submit value=Login /div/td td width=50%div align=center input name=Clear type=reset id=Clear value=Clear /div/td /tr /table /html:form When I start TC I get the error message Cannot retrieve mapping for action /j_security_check. It looks like the j_security_check action is being treated as a normal struts action mapping. Can anyone throw any light on this? TIA - Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie FORM authentication problems with a Struts app - TC 5.0.25
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adam Lipscombe wrote: | Thanks, but this produces the error message: | javax.servlet.ServletException: Cannot retrieve mapping for action | /j_security_check | | As far as I know TC should treat the jsecurity_check action specially - it | should know that this is a authentication request. It seems to me that TC is | not doing this and passing it onto the Struts libs for processing. | | | Any ideas? Don't use the Struts specific html:* tags. Instead just use the normal HTML tags. The Struts taglibs are there for your convenience when using Struts, but j_security_check is not part of Struts. It is part of the Servlet Spec, and thus implemented by Tomcat. Now if you still want to be able to use the Validator and the conveniences of the Struts tags, then you could write an action the simply forwards the request to j_security_check. I am pretty sure I saw an example somewhere on the Web. Perhaps someone else knows the URL. HTH, Victor -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAzuqN8MW+BaXrmuERAn1gAJ9zGI6zAc9fWk0iSSL1VPNURn2aogCgnxQ5 ytb9Bs7gpfYbo+m2GeG1MnA= =uOd2 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]