Skip to content

Instantly share code, notes, and snippets.

@darbyluv2code
Created January 4, 2017 15:30
Show Gist options
  • Save darbyluv2code/8facc94af7b81d4445ca5cb10c4e78c7 to your computer and use it in GitHub Desktop.
Save darbyluv2code/8facc94af7b81d4445ca5cb10c4e78c7 to your computer and use it in GitHub Desktop.
JSP: Drop down forms
<html>
<head><title>Student Registration Form</title></head>
<body>
<form action="student-dropdown-response.jsp">
First name: <input type="text" name="firstName" />
<br/><br/>
Last name: <input type="text" name="lastName" />
<br/><br/>
<select name="country">
<option>Brazil</option>
<option>France</option>
<option>Germany</option>
<option>India</option>
<option>Turkey</option>
<option>United Kingdom</option>
<option>United States of America</option>
</select>
<br/><br/>
<input type="submit" value="Submit" />
</form>
</body>
</html>
<html>
<head><title>Student Confirmation Title</title></head>
<body>
The student is confirmed: ${param.firstName} ${param.lastName}
<br/><br/>
The student's country: ${param.country}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment