我有一个用户模型UserServices,并通过登录页面我想认证一个注册用户。
你能帮我写一下在认证控制器中使用的方法吗?春季认证
<fieldset><legend>Authentication</legend>
<form:form action="login.htm" commandName="user">
<table>
<tr>
<td>User Name:<FONT color="red"><form:errors
path="userName" /></FONT></td>
</tr>
<tr>
<td><form:input path="userName" /></td>
</tr>
<tr>
<td>Password:<FONT color="red"><form:errors
path="password" /></FONT></td>
</tr>
<tr>
<td><form:password path="password" /></td>
</tr>
<tr>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
</form:form>
</fieldset>
@Logan这两个链接帮助我找到了我想要的方向!谢谢! – user1577291 2012-08-07 12:59:35
@ user1577291如果答案有用,请立即投入并接受一个答案。 – kgautron 2012-08-08 00:03:50