更新頁面(update-new.html)html
<form action="init" th:object="${userBean}" method="post"> <div> <h3>修改我的信息</h3> <table> <tr> <td>用 戶 ID </td> <td><span th:text="${userBean.userId}"></span></td> <td><input name="userId" type="hidden" value="" th:value="${userBean.userId}"/> </td> </tr> <tr> <td>用 戶 名</td> <td><input name="userName" type="text" value="" th:value="${userBean.userName}"/> </td> </tr> <tr> <td>密 碼</td> <td><input name="userPassword" type="password"/> </td> </tr> <tr> <td>確認密碼 </td> <td><input name="passwordConfirm" type="password" /> </td> </tr> <div><label><span style="display:inline;color:red;" th:text="${updatemessage}"></span></label></div> <tr> <td><input type="submit" value="Update" name="update" /> </td> <td><input type="submit" value="Cancel" name="cancel" /> </td> <td><input type="submit" value="Return" name="return-show" /> </td> </tr> </table> </div> </form>
2. 刪除確認頁面(confirm.html)
post
<div align="center"> <form action="init" th:object="${userBean}" method="post"> <input name="userId" type="hidden" th:value="${userBean.userId}"/> <div><input type="submit" value="確認(Y)" name="yes" /> </div> <div><input type="submit" value="取消(N)" name="no" /> </div> </form> </div>