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

Java编程

开发平台:

Java

  1. <%@ page info="JavaCamp.com - ModifyStudent.jsp " %>
  2. <html>
  3. <body>
  4. <table border="5">
  5. <caption><font size="4">Modify Student Information for <%=request.getAttribute("PrimaryKey")%></font></caption>
  6. <tr>
  7. <th>Fields</th>
  8. <th>Old</th>
  9. <th>New</th>
  10. <th>Action</th>
  11. </tr>
  12. <tr>
  13. <td>Password: </td> <td> <%= request.getAttribute("OldPassword") %></td>
  14. <td>
  15. <Form Action="StudentAlias" method="POST">
  16. <input type="hidden" name="requestAction" value="ModifyPassword">
  17. <input type="text" name="NewPassword" Size="8">
  18. <td>
  19. <input type="submit" value="Modify">
  20. </td>
  21. </form>
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>First Name: </td> <td> <%= request.getAttribute("OldFirstName") %></td>
  26. <td>
  27. <Form Action="StudentAlias" method="POST">
  28. <input type="hidden" name="requestAction" value="ModifyFirstName">
  29. <input type="text" name="NewFirstName" Size="10">
  30. <td>
  31. <input type="submit" value="Modify">
  32. </td>
  33. </form>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>Last Name: </td> <td> <%= request.getAttribute("OldLastName") %></td>
  38. <td>
  39. <Form Action="StudentAlias" method="POST">
  40. <input type="hidden" name="requestAction" value="ModifyLastName">
  41. <input type="text" name="NewLastName" Size="20">
  42. <td>
  43. <input type="submit" value="Modify">
  44. </td>
  45. </form>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>Phone Number: </td> <td> <%= request.getAttribute("OldPhone") %></td>
  50. <td>
  51. <Form Action="StudentAlias" method="POST">
  52. <input type="hidden" name="requestAction" value="ModifyPhone">
  53. <input type="text" name="NewPhone" Size="15">
  54. <td>
  55. <input type="submit" value="Modify">
  56. </td>
  57. </form>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>Email Address: </td> <td> <%= request.getAttribute("OldEmail") %></td>
  62. <td>
  63. <Form Action="StudentAlias" method="POST">
  64. <input type="hidden" name="requestAction" value="ModifyEmail">
  65. <input type="text" name="NewEmail" Size="20">
  66. <td>
  67. <input type="submit" value="Modify">
  68. </td>
  69. </form>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>Company Name: </td> <td> <%= request.getAttribute("OldCompanyName") %></td>
  74. <td>
  75. <Form Action="StudentAlias" method="POST">
  76. <input type="hidden" name="requestAction" value="ModifyCompanyName">
  77. <input type="text" name="NewCompanyName" Size="20">
  78. <td>
  79. <input type="submit" value="Modify">
  80. </td>
  81. </form>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>Remove this student with ID </td> <td> <%=request.getAttribute("PrimaryKey")%></td>
  86. <td>
  87. <Form Action="StudentAlias" method="POST">
  88. <input type="hidden" name="requestAction" value="RemoveStudent">
  89. <input type="hidden" name="StudentID" value=<%=request.getAttribute("PrimaryKey")%> >
  90. <td>
  91. <input type="submit" value="Remove">
  92. </td>
  93. </form>
  94. </td>
  95. </tr>
  96. </table>
  97. <p>
  98. <center>
  99. <a href="/Reg/Student.html">Add Another Student classes</a>
  100. </center>
  101. </body>
  102. </html>