of 23 /23
Unit – 3 Struts Tags

Struts Tags Classification of Struts Tags are: Form tags. Control tags. Data tags. Ajax tags

Embed Size (px)

DESCRIPTION

Form Tags The list of form tags is a subset of Struts UI Tags. These tags help in the rendering of the user interface required for the Struts web applications and can be categorized into three categories. Simple UI Tags. Group UI Tags. Select UI Tags.

Text of Struts Tags Classification of Struts Tags are: Form tags. Control tags. Data tags. Ajax tags

Struts Tags Classification of Struts Tags are: Form tags. Control tags. Data tags. Ajax tags. Form Tags The list of form tags is a subset of Struts UI Tags. These tags help in the rendering of the user interface required for the Struts web applications and can be categorized into three categories. Simple UI Tags. Group UI Tags. Select UI Tags. Simple UI Tags. If you are aware of HTML then all the tags used are very common HTML tags with an additional prefix s: along with each tag and different attributes. Simple UI Tags AttributesDescriptionRequired methodDefine method GET or POSTFalse actionDefine action nameFalse Simple UI Tags. R enders an input form. AttributesDescriptionRequired idDefine ID to the particular divisionFalse keyRetrieve key value from the property fileFalse Simple UI Tags. Render an HTML div. AttributesDescriptionRequired idDefine ID to the submit buttonFalse keyRetrieve key value from the property fileFalse valueCaption of the submit buttonFalse Simple UI Tags. Render an Submit button. AttributesDescriptionRequired idDefine ID to the reset buttonFalse keyRetrieve key value from the property fileFalse valueCaption of the reset buttonFalse Simple UI Tags. Render an Reset button. AttributesDescriptionRequired idDefine ID to the text elementFalse nameDefine TEXT to displayTrue Simple UI Tags. Render I18n text message. AttributesDescriptionRequired nameDefine NAME to the text elementFalse keyRetrieve key value from the property fileFalse labelLabel for the textboxFalse readonlyif true than it makes textbox as readonlyFalse disabledif true than it makes textbox disabledFalse sizeDefines the width of the textboxFalse maxLengthDefines the maximum characters as an inputFalse Simple UI Tags. Render an HTML input field of type text. AttributesDescriptionRequired nameDefine NAME to the password elementFalse keyRetrieve key value from the property fileFalse labelLabel for the textboxFalse readonlyif true than it makes textbox as readonlyFalse disabledif true than it makes textbox disabledFalse sizeDefines the width of the textboxFalse maxLengthDefines the maximum characters as an inputFalse Simple UI Tags. Render an HTML input tag of type password. AttributesDescriptionRequired nameDefine NAME to the textarea elementFalse keyRetrieve key value from the property fileFalse labelLabel for the textboxFalse readonlyif true than it makes textbox as readonlyFalse disabledif true than it makes textbox disabledFalse rowsDefines Height of the Textarea (default is 2)False colsDefines Width of the Textarea (default is 20)False Simple UI Tags. Render HTML textarea tag. AttributesDescriptionRequired idDefine ID to the label elementFalse labelDefine Label textFalse Simple UI Tags. Render a label that displays read-only information. AttributesDescriptionRequired nameDefine NAME to the file elementFalse labelDefine Label textFalse Simple UI Tags. Render a file input field. Group UI Tags. The group UI tags are used to create radio button and the checkbox. Group UI Tags AttributesDescriptionRequired nameDefine NAME to the radio elementFalse labelDefine Label textFalse listDefine List of Data to be selected (Only one)True Renders a radio button input field. Group UI Tags. AttributesDescriptionRequired nameDefine NAME to the checkbox elementFalse labelDefine Label textFalse listDefine List of Data to be selected (Multiple)True Render a list of checkboxes. Group UI Tags. AttributesDescriptionRequired nameDefine NAME to the checkbox elementFalse labelDefine Label textFalse Render a checkbox input field. Group UI Tags. Select UI Tags. The Select UI tags are used to create select options and dropdown lists. Select UI Tags AttributesDescriptionRequired nameDefine NAME to the select elementFalse labelDefine Label textFalse listDefine List of Data to be selected (Only one)True Renders a Select element. Select UI Tags. AttributesDescriptionRequired nameDefine NAME to the combobox elementFalse labelDefine Label textFalse listDefine List of ValuesTrue headerKeyDefine Header KeyFalse headerValueDefine Header TextFalse Widget that fills a text box from a select. Select UI Tags. AttributesDescriptionRequired nameDefine NAME to the first Select elementFalse labelDefine Label textFalse listDefine List of Data to be selected (Multiple)True doubleNameDefine NAME to the second Select elementTrue doubleListDefine List for the second SelectTrue Renders two HTML select elements with second one changing displayed values depending on selected entry of first one. Select UI Tags. Summary Form Tag Simple Group Select