Skip to content

Instantly share code, notes, and snippets.

@darbyluv2code
Created June 13, 2017 10:32
Show Gist options
  • Select an option

  • Save darbyluv2code/38bfed96e43a519cbc9527a58e41f626 to your computer and use it in GitHub Desktop.

Select an option

Save darbyluv2code/38bfed96e43a519cbc9527a58e41f626 to your computer and use it in GitHub Desktop.
add-student-form.jsp (Fixed form fields)
<!DOCTYPE html>
<head>
<h2>Add Student</h2>
</head>
<body>
<form action="StudentControllerServlet" method="GET">
<input type="hidden" name="command" value="ADD"/>
<table>
<tbody>
<tr>
<td><label>First Name:</label></td>
<td><input type="text" name="firstName"/></td>
</tr>
<tr>
<td><label>Last Name:</label></td>
<td><input type="text" name="lastName"/></td>
</tr>
<tr>
<td><label>Email:</label></td>
<td><input type="text" name="email"/></td>
</tr>
<tr>
<td><input type="submit" value="Save" class="save" /></td>
</tr>
</tbody>
</table>
</form>
<a href="StudentControllerServlet">Back to List</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment