Home Jsp How to create a form in JSP
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

How to create a form in JSP

Advertisement
This section illustrates you about the procedure of the creation of a form through the HTML code in the JSP page.

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>&nbsp;</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.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 7, 2008

Related Tutorials

Ask Questions?    Discuss: How to create a form in JSP   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
chetna
December 11, 2012
jsp

very good language
Dhirender
November 16, 2012
preparing form by jsp

i wish to know the jsp code for the form I am filling now. the text in comment will go to a specific person and then he can solve out the query of user
DMCA.com