Free WebSchools.com

Google


Submit ArticleForumsLive chat Webhosting Link TO Us SEO Toolsjobs & interview


HOME

Java Server Pages

JSP Introduction
JSP Syntax
JSP Expression
JSP Declaration
JSP Comments

JSP Directives
JSP Actions
JavaBeans
JSP Sessions
JSP JDBC
JSP And HTML Forms
JSP With XML

JSP Exam


JSP with HTML







An HTML form is the most common way to gather information forma user on the web. A form ids made up of two main elements namely <form> tag and the ,input> tag the <form> tag defines the form. It tells the browser how to display and submit the form. Its syntax is

<form method=”GET | POST” action=”URL”></form>

The attribute use are described below

Method=”GET| POST”

This attribute determines which method will be used to transmit the gathered data. Default value is GET, it depends form data to URL in the form of a query string (which is displayed in the URL), and maximum size of this string is 255 bytes. The POST method passes data in the request headers sent form the client. It can send unlimited amount of data and the query string is not displayed in the URL.

Action=”URL”

This attribute defines the target of the form. This specifies the URL of the page this form would redirect to after its processing is over.

The, input. Tag is used to capture form data. Its syntax is

<input type=”submit” value=”submit”></form>



The attribute used are describe below

type=”submit|text|button ….etc”

This attribute determines which type of the input object is being used

value=”value”

This attribute defines the value stored in the object and to be sent in the request.


Inform Friend About This Site

Your Name:

Friend's Name:

Friend's Email: