tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lipscombe" <adam.lipsco...@expensys.com>
Subject Newbie FORM authentication problems with a Struts app - TC 5.0.25
Date Mon, 14 Jun 2004 17:23:15 GMT
Folks,

I am trying to configure 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>
      <td><div align="right"><bean:message key="login.userID"/></div></td>
      <td><html:text name="j_username" property="userID" size="15"/></td>
    </tr>
    <tr>
      <td><div align="right"><bean:message key="login.password"/></div></td>
      <td><html: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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message