This section illustrates you about the procedure of the creation of a form through the HTML code in the JSP page. You can simply use the <form></form> tags for creating a frojsp" extension.
Following code of the JSP file is given as follows in which all the thing are usm and save the file with the ".ed from the HTML code syntaxes. There are two controls of the form have been generated by the following code of the program.
Here is the code of the program:
<html> <head><title>Creating Form in JSP.</title></head> <body> <form method="post"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td>Enter your name: </td> <td><input type="text" name="txtName" size="20"/></td> </tr> <tr> <td> </td> <td><input type="submit" name="B1"/> <input type="reset" name="B2"/></td> </tr> </table> </form> </body> </html>
Output of the program:
Recommend the tutorial