Home Struts Struts2.3.15.1 Struts 2 UI Tags
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Struts 2 UI Tags

Advertisement
Struts 2 UI Tags are mainly designed to use the data from your action/value stack or from Data Tags. These tags are used to display the data on the HTML page. The UI tags are driven by templates and themes.

Struts 2 UI Tags

Struts 2 UI Tags are mainly designed to use the data from your action/value stack or from Data Tags. These tags are used to display the data on the HTML page. The UI tags are driven by templates and themes.

Struts 2 Tags are of two types: Generic Tags and UI tags.

Struts UI Tags are further classified into:

Form Tags:

  • form - tag renders HTML an input form.
  • textfield - tag renders an HTML input field of type text.
  • submit - tag renders a submit button. It is used with form tag.
  • password - tag renders an HTML input tag of type password.
  • textarea - tag renders an HTML textarea.
  • hidden - tag renders an HTML input element of type hidden
  • checkbox - tag renders an HTML input element of type checkbox.
  • checkboxlist - tag creates a series of checkboxes from a list.
  • combobox - tag is a combination of HTML INPUT of type text and HTML SELECT.
  • radio - tag renders a radio button input field.
  • select - tag renders an HTML input tag of type select.
  • doubleselect - tag renders two HTML select elements with second one changing displayed values depending on selected entry of first one.
  • optgroup - tag creates an optgroup component which needs to reside within a select tag
  • updownselect - tag creates a select component with buttons to move up and down the elements.
  • optiontransferselect - tag creates an option transfer select component.

Non Form Tags:

  • actionerror - tag renders action errors if they exist
  • fielderror - tag renders field errors if they exists.
  • actionmessage - tag renders action messages if they exists.
  • component - tag renders custom UI widget using the defined templates
  • div - tag creates an HTML <div>
Advertisement

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: September 21, 2013

Ask Questions?    Discuss: Struts 2 UI Tags  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com