我有一個用戶模型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