How to create a form in JSP

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:

Download this example.

|
Current Comments
1 comments so far (post your own) View All Comments Latest 10 Comments:i can only say that this is rally helpful in solving many problems
Posted by manoj on Monday, 08.13.07 @ 15:48pm | #23287