employeelist.jsp~13~
上传用户: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 name="employee" property="username" />">Edit</a>
  64. <a href="Delete.do?username=<bean:write name="employee" property="username" />">Delete</a>
  65. </td>
  66. </tr>
  67. </logic:iterate>
  68. <tr>
  69. <td colspan="7">
  70. <hr>
  71. </td>
  72. </tr>
  73. </table>
  74. <font size=".1" face="arial">
  75. <a href="addemployee.jsp">Add New Employee</a>
  76. </font>
  77. </body>
  78. </html>