日期:2014-05-17 浏览次数:20812 次
<html:form action="/userAction/showUserList.do"> <html:submit>显示所有用户</html:submit> </html:form> <html:form action="/userAction/showUserList.do"> <html:submit>显示所有用户</html:submit> </html:form>
<action path="/userAction/showUserList" type="usermodule.UserAction" name="userForm" parameter="showUserList" scope="request" input="/root/user/userlist.jsp"> <forward name="success" path="/root/user/userlist.jsp"></forward> </action>
<table> <tr> <td>登陆名 </td> <td>真实姓名 </td> <td>EMAIL</td> </tr> <logic:present name="userList"> <logic:iterate id="UserForm" name="userList" type="usermodule.DBUser"> <tr> <td> <bean:write name="UserForm" property="username"/> </td> <td> <bean:write name="UserForm" property="realname"/> </td> <td> <bean:write name="UserForm" property="email"/> </td> </tr> </logic:iterate> </logic:present> <tr><td> <html:form action="/userAction/showUserList.do"> <html:submit>显示所有用户</html:submit> </html:form> </td></tr> </table> <table> <tr> <td>登陆名 </td> <td>真实姓名 </td> <td>EMAIL</td> </tr> <logic:present name="userList"> <logic:iterate id="UserForm" name="userList" type="usermodule.DBUser"> <tr> <td> <bean:write name="UserForm" property="username"/> </td> <td> <bean:write name="UserForm" property="realname"/> </td> <td> <bean:write name="UserForm" property="email"/> </td> </tr> </logic:iterate> </logic:present> <tr><td> <html:form action="/userAction/showUserList.do"> <html:submit>显示所有用户</html:submit> </html:form> </td></tr> </table>