Created
January 11, 2018 07:32
-
-
Save raunakhajela/32ff63134ac7b044206f87024b5ad282 to your computer and use it in GitHub Desktop.
JSP: Forms - Dropdowns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form action="student-dropdown-response.jsp"> | |
First name: <input type="text" name="fname" /> | |
<br/><br/> | |
Last name: <input type="text" name="lname" /> | |
<br/><br/> | |
<select name="country"> | |
<option>Brazil</option> | |
<option>France</option> | |
<option>India</option> | |
</select> | |
<br/><br/> | |
<input type="submit" value="Submit" /> | |
</form> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
The student is confirmed: ${param.fname} ${param.lname} | |
<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