regStudentPage.jsp 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags/form" %>
  2. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%--
  5. Created by IntelliJ IDEA.
  6. User: Кинетик
  7. Date: 02.01.2017
  8. Time: 23:29
  9. To change this template use File | Settings | File Templates.
  10. --%>
  11. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  12. <html>
  13. <head>
  14. <title>student form</title>
  15. </head>
  16. <body>
  17. <spring:form method="post" modelAttribute="student" action="regStudentAction">
  18. <spring:input path="stFamily" type="text" placeholder="Фамилия"/> <br/>
  19. <spring:input path="stFirstName" type="text" placeholder="Имя"/> <br/>
  20. <spring:input path="stSecName" type="text" placeholder="Отчество"/> <br/>
  21. <spring:input path="stPkNumber" type="password" placeholder="Пароль"/> <br/>
  22. <form:select id="groupId" path="stGroup">
  23. <c:forEach items="${groupList}" var="group">
  24. <form:option value="${group.groupId}" >${group.groupName}</form:option>
  25. </c:forEach><br/>
  26. </form:select>
  27. <spring:button>Зарегистрироваться</spring:button>
  28. </spring:form>
  29. </body>
  30. </html>