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