Textarea Object

By: aathishankaran Emailed: 1784 times Printed: 2615 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"]

[onSelect="methodName"]>

displayText

</TEXTAREA> 

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

Comments(0)


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 CheckBox Example
JSP Alert Example
Comparison operators in JSP
Sending Email using JSP
Uploading an Image to a Database using JSP
Arithmetic Evaluation Using the Expression Language in JSP
The Advantages of JSP
Disabling Scriptlets in JSP using web.xml
The Request Object in JSP
Writing your first JSP page
Uploading a file to a server using JSP
Deploying an Individual JSP on Tomcat
Automatically Refreshing a JSP
Most Emailed Articles (in JSP)
Calling JSP from a batch file
Simple HTML-Building Utilities
Handling Events
The Tag Life Cycle with Attributes in JSP
JSP Program for display Date
Sessions in JSP
NetworkClient
The Advantages of JSP
Using a DataSource from WebLogic in a JSP
The JSP Program running first Time.
JSP pages in servlet
Combining Scriptlets with HTML
Declaring variable in JSP
An Example Using Servlet Initialization and Page Modification Dates
Password Object