Textarea Object

By: aathishankaran Emailed: 1728 times Printed: 2329 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

All the other form objects that you work with are designed for capturing data of limited size (less than 256 characters). The textarea object provides a means for capturing information that does not lend itself to simple text fields, radio buttons, or selection lists. You can use the textarea object to enter free-form data that spans several lines. You are limited to displaying ASCII text, but such basic formatting as paragraphs are allowed. The textarea object is defined using the standard HTML syntax: 

<TEXTAREA NAME="objectName" ROWS="numRows" COLS="numCols"

[WRAP="off|virtual|physical"] [onBlur="methodName"]

[onChange="methodName"] [onFocus="methodName"]




Events, methods and application are same as Text Box 

The Button Objects (Submit, Reset, and Button) 

Because graphical operating environments became dominant over the past decade, the push button is perhaps the most ubiquitous of all user interface components. HTML has three types of buttons you can use in your forms: button, submit, and reset. As you can see, two are specialized forms of the more generic button object. Using conventional HTML syntax, a button is defined as 

< INPUT TYPE="button | submit | reset" [NAME=" objectName"]

[VALUE="labelText"] [onClick="methodName"]> 

The three button types have different purposes: 

  1. Submit-The submit button submits the form in which it is contained to the server based on the parameters of the form. No JavaScript code is needed to perform this action because its behavior is built into the object itself.
  1. Reset-The reset button clears the values in the fields of the current form, restoring any default values that might have been set. As with the submit button, no JavaScript code is used for this.
  1. Button-The button object is a generic object with no predefined behavior built into it. In Order for this object to do anything, you need to add an onClick event handler to the button.

If you are new to HTML, you might be asking about the reasons for the submit and reset buttons because you could use a button object to perform these same tasks. These originated before the days of JavaScript, where you could not use a generic button because you had no means of making it do anything. Additionally, although not all browsers support JavaScript (and thus the button object), all modern browsers do support the reset and submit buttons. For compatibility reasons, it is usually best to use the submit and reset buttons unless JavaScript support is a requirement for accessing your page, and in that case, it would not matter.

JSP Home | All JSP Tutorials | Latest JSP Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.

Bookmark and Share


Be the first one to add a comment

Your name (required):

Your email(required, will not be shown to the public):

Your sites URL (optional):

Your comments:

More Tutorials by aathishankaran
Web Security Issues
The Web User's Perspective
Server-side plug-Ins
The best way to avoid security vulnerabilities with new server
JavaScript Security
Window Object
Working with Status Bar Messages
Retrieving a Portion of a String
Referencing Windows
Math Object
Frame Object
Document Object
Closing Windows
Built-in Object in Javascript
Textarea Object

More Tutorials in JSP
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied <null>:80
JSP Alert Example
JSP CheckBox Example
Uploading an Image to a Database using JSP
Uploading a file to a server using JSP
A JSP page that gets properties from a bean
The page Directive in JSP
The taglib, tag, include, attribute and the variable Directive in JSP
Declarations in JSP
Scriptlets and Expressions in JSP
Tag Libraries in JSP
The Request Object in JSP
The Response Object in JSP
The Out Object in JSP
The Session Object in JSP

More Latest News
Most Viewed Articles (in JSP )
JSP Example to connect to MS SQL database and retrieve records
What are the different scopes in JSP?
JSP Alert Example
JSP CheckBox Example
JSP Program for display Date
Comparison operators in JSP
Form processing in JSP
Protecting your website with a login page
Textarea Object
Math Object
The best way to avoid security vulnerabilities with new server
Server-side plug-Ins
Web Security Issues
JSP Example to connect to MS SQL database using Tomcat Connection Pool
The Request Object in JSP
Most Emailed Articles (in JSP)
The Servlet Life Cycle
Drawbacks of the JSP Model 1 Architecture
Working with Status Bar Messages
Embedding a QuickTime movie in a JSP
Embedding MP3 audio file in a JSP
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: `java.net.BindException: Permission denied <null>:80
What is JSP?
Cookies using JSP or Java Bean
Click to Activate and Use this control
The JSP Program running first Time.
Server Side Programming
Syntax For JSP Declaratives
Embedding java codes in jsp sciptlets
Tags using in jsp