employeelist.jsp~12~
上传用户: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. <!.. iterate over the results of the query ..>
  42. <logic:iterate id="employee" scope="request" name="employees">
  43. <tr align="left">
  44. <td>
  45. <bean:write name="employee" property="username" />
  46. </td>
  47. <td>
  48. <bean:write name="employee" property="name" />
  49. </td>
  50. <td>
  51. <bean:write name="employee" property="phone" />
  52. </td>
  53. <td>
  54. <bean:write name="employee" property="email" />
  55. </td>
  56. <td>
  57. <bean:write name="employee" property="department" />
  58. </td>
  59. <td>
  60. <bean:write name="employee" property="rolename" />
  61. </td>
  62. <td>
  63. <a href="getEmployeeAction.do?username=<bean:write
  64. name="employee" property="username" />">Edit</a>
  65. <a href="Delete.do?username=<bean:write
  66. name="employee" property="username" />">Delete</a>
  67. </td>
  68. </tr>
  69. </logic:iterate>
  70. <tr>
  71. <td colspan="7">
  72. <hr>
  73. </td>
  74. </tr>
  75. </table>
  76. <font size=".1" face="arial">
  77. <a href="addemployee.jsp">Add New Employee</a>
  78. </font>
  79. </body>
  80. </html>