Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Struts Struts2 Struts2uitags Textarea Tag (Form Tag) Example

Related Tutorials


Share on Google+Share on Google+

Textarea Tag (Form Tag) Example

In this section, we are going to describe the textarea tag.

Textarea Tag (Form Tag) Example


In this section, we are going to describe the textarea tag. The textarea tag is a UI tag that is used to render an HTML textarea. 

Add the following code snippet into the struts.xml file.

<action name="textareaTag">

Create a jsp using the tag <s:textarea > that renders an HTML textarea tag.

<s:textarea label="Description" name="description" cols="15" rows="10" /> tag displays an HTML textarea with label equal to Description, column value=15 and row value=10.

<%taglib prefix="s" uri="/struts-tags" %>

  <title>Textarea Tag Example</title>
  <link href="<s:url value="/css/main.css"/>" rel="stylesheet"
  <h1><span style="background-color: #FFFFcc">Textarea Tag Example!</span></h1>
  <s:textarea label="Description" name="description" cols="15" rows="10" />

Output of the textareaTag.jsp:


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: July 28, 2007

Related Tutorials

Discuss: Textarea Tag (Form Tag) Example   View All Comments

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image