Created
January 11, 2018 07:36
-
-
Save raunakhajela/5ab6691fffab19efa0438057093b212a to your computer and use it in GitHub Desktop.
JSP: Forms - Radiobuttons
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-radio-response.jsp"> | |
First name: <input type="text" name="fname" /> | |
<br/><br/> | |
Last name: <input type="text" name="lname" /> | |
<br/><br/> | |
<input type="radio" name="flang" value="java"/> Java | |
<input type="radio" name="flang" value="php"/> PHP | |
<input type="radio" name="flang" value="c"/> C | |
<input type="radio" name="flang" value="cpp"/> C++ | |
<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 fav lang: ${param.flang} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment