SHARE
TWEET

Untitled

a guest Aug 14th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <html>
  4. <head></head>
  5. <body>
  6. <c:choose>
  7.     <c:when test="person.id != null">
  8.         <h3>Muudame ${person.forename}</h3>
  9.     </c:when>
  10.     <c:otherwise>
  11.         <h3>Uus isik</h3>
  12.     </c:otherwise>
  13. </c:choose>
  14. <form:form method="POST" action="/app/person/save" modelAttribute="person">
  15.     <form:hidden path="id" />
  16.     <table>
  17.         <tr>
  18.             <td><form:label path="forename">Eesnimi</form:label></td>
  19.             <td><form:input path="forename"/></td>
  20.         </tr>
  21.         <tr>
  22.             <td><form:label path="surname">Perenimi</form:label></td>
  23.             <td><form:input path="surname"/></td>
  24.         </tr>
  25.         <td><form:label path="code">Isikukood</form:label></td>
  26.         <td><form:input path="code"/></td>
  27.         </tr>
  28.         <tr>
  29.             <td><input type="submit" value="Salvesta"/></td>
  30.             <td><a href="/app/person/load">Katkesta</a></td>
  31.         </tr>
  32.     </table>
  33. </form:form>
  34. </body>
  35. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top