Created
January 11, 2018 07:26
-
-
Save raunakhajela/b015bea7c9acc35f010fc1668dba1c2b to your computer and use it in GitHub Desktop.
JSP: Forms
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-response.jsp"> | |
First name: <input type="text" name="fname" /> | |
<br/><br/> | |
Last name: <input type="text" name="lname" /> | |
<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 is confirmed: <%= request.getParameter("fname") %> <%= request.getParameter("lname") %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment