Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%-- Форма ввода --%>
- <form:form action="${addAction}" modelAttribute="product">
- <table>
- <tr>
- <td>
- <form:label path="id">
- <spring:message text="ID"/>
- </form:label>
- </td>
- <td>
- <form:input path="id"/>
- </td>
- </tr>
- <tr>
- <td>
- <form:label path="name">
- <spring:message text="Название"/>
- </form:label>
- </td>
- <td>
- <form:input path="name"/>
- </td>
- </tr>
- <tr>
- <td>
- <form:label path="price">
- <spring:message text="Цена"/>
- </form:label>
- </td>
- <td>
- <form:input path="price"/>
- </td>
- </tr>
- <tr>
- <td>
- <form:label path="img">
- <spring:message text="Изображение"/>
- </form:label>
- </td>
- <td>
- <form:input path="img"/>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <c:if test="${!empty product.name}">
- <input type="submit" value="<spring:message text="Редактировать товар"/>"/>
- </c:if>
- <c:if test="${empty product.name}">
- <input type="submit" value="<spring:message text="Добавить товар"/>"/>
- </c:if>
- </td>
- </tr>
- </table>
- </form:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement