Skip to content

Instantly share code, notes, and snippets.

@mmafrar
Created April 2, 2021 15:40
Show Gist options
  • Save mmafrar/5f5f25fe4d22ac149b18c61b3c2dbb5a to your computer and use it in GitHub Desktop.
Save mmafrar/5f5f25fe4d22ac149b18c61b3c2dbb5a to your computer and use it in GitHub Desktop.
Implementing Spring Boot MVC CRUD operations with JPA and JSP
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<h1>Update Contact</h1>
<form:form method="post" action="/update-contact/${id}">
<table>
<tr>
<td>Name: </td>
<td><form:input path="name"/></td>
</tr>
<tr>
<td>Email: </td>
<td><form:input path="email"/></td>
</tr>
<tr>
<td>Country: </td>
<td><form:input path="country"/></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Update" /></td>
</tr>
</table>
</form:form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment