employeelist.jsp~9~
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
  2. <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
  3. <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  4. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  5. <logic:notPresent name="USER">
  6. <logic:forward name="login" />
  7. </logic:notPresent>
  8. <html>
  9. <head>
  10. <title><bean:message key="app.title" /></title>
  11. </head>
  12. <body>
  13. <table width="650"
  14. border="0" cellspacing="0" cellpadding="0">
  15. <tr>
  16. <td colspan="7">&nbsp;</td>
  17. </tr>
  18. <tr bgcolor="#36566E">
  19. <td colspan="7" height="68" width="48%">
  20. <div align="left">
  21. <img src="images/hp_logo_wiley.gif"
  22. width="220" height="74">
  23. </div>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td colspan="7">&nbsp;</td>
  28. </tr>
  29. </table>
  30. <html:errors />
  31. <table width="650"
  32. border="0" cellspacing="0" cellpadding="0">
  33. <tr align="left">
  34. <th><bean:message key="app.username" /></th>
  35. <th><bean:message key="app.name" /></th>
  36. <th><bean:message key="app.phone" /></th>
  37. <th><bean:message key="app.email" /></th>
  38. <th><bean:message key="app.department" /></th>
  39. <th><bean:message key="app.role" /></th>
  40. </tr>
  41. <%java.util.ArrayList list = new java.util.ArrayList();
  42. %>
  43. <!.. iterate over the results of the query ..>
  44. <logic:iterate id="employee" name="employee"scope="session" type="strutsds.Employee">
  45. <tr align="left">
  46. <td>
  47. <bean:write name="employee" property="username" />
  48. </td>
  49. <td>
  50. <bean:write name="employee" property="name" />
  51. </td>
  52. <td>
  53. <bean:write name="employee" property="phone" />
  54. </td>
  55. <td>
  56. <bean:write name="employee" property="email" />
  57. </td>
  58. <td>
  59. <bean:write name="employee" property="department" />
  60. </td>
  61. <td>
  62. <bean:write name="employee" property="rolename" />
  63. </td>
  64. <td>
  65. <a href="Edit.do?username=<bean:write
  66. name="employee" property="username" />">Edit</a>
  67. <a href="Delete.do?username=<bean:write
  68. name="employee" property="username" />">Delete</a>
  69. </td>
  70. </tr>
  71. </logic:iterate>
  72. <tr>
  73. <td colspan="7">
  74. <hr>
  75. </td>
  76. </tr>
  77. </table>
  78. <font size=".1" face="arial">
  79. <a href="addemployee.jsp">Add New Employee</a>
  80. </font>
  81. </body>
  82. </html>