Download presentation
Presentation is loading. Please wait.
Published byMalcolm Crawford Modified over 9 years ago
2
Struts Tags Classification of Struts Tags are: Form tags. Control tags. Data tags. Ajax tags.
3
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.
4
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
5
AttributesDescriptionRequired methodDefine method “GET” or “POST”False actionDefine action nameFalse Simple UI Tags. R enders an input form.
6
AttributesDescriptionRequired idDefine ID to the particular divisionFalse keyRetrieve key value from the property fileFalse Simple UI Tags. Render an HTML div.
7
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.
8
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.
9
AttributesDescriptionRequired idDefine ID to the text elementFalse nameDefine TEXT to displayTrue Simple UI Tags. Render I18n text message.
10
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.
11
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.
12
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.
13
AttributesDescriptionRequired idDefine ID to the label elementFalse labelDefine Label textFalse Simple UI Tags. Render a label that displays read-only information.
14
AttributesDescriptionRequired nameDefine NAME to the file elementFalse labelDefine Label textFalse Simple UI Tags. Render a file input field.
15
Group UI Tags. The group UI tags are used to create radio button and the checkbox. Group UI Tags
16
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.
17
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.
18
AttributesDescriptionRequired nameDefine NAME to the checkbox elementFalse labelDefine Label textFalse Render a checkbox input field. Group UI Tags.
19
Select UI Tags. The Select UI tags are used to create select options and dropdown lists. Select UI Tags
20
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.
21
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.
22
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.
23
Summary Form Tag Simple Group Select
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.