## Uses of Class
org.apache.struts2.views.java.Attributes

- Packages that use Attributes
  Package | Description
  --- | ---
  org.apache.struts2.views.java |
  org.apache.struts2.views.java.simple |

- - ### Uses of Attributes in org.apache.struts2.views.java

    Methods in org.apache.struts2.views.java that return Attributes
    Modifier and Type | Method and Description
    --- | ---
    `Attributes` | Attributes.`add(String key, String value)`
    `Attributes` | Attributes.`add(String key, String value, boolean encode)`
    `Attributes` | Attributes.`addDefaultToEmpty(String attrName, Object paramValue)` Add a key/value pair to the attributes, if the value is null, it will be set as an empty string.
    `Attributes` | Attributes.`addDefaultToEmpty(String attrName, Object paramValue, boolean encode)` Add a key/value pair to the attributes, if the value is null, it will be set as an empty string.
    `Attributes` | Attributes.`addIfExists(String attrName, Object paramValue)` Add a key/value pair to the attributes only if the value is not null.
    `Attributes` | Attributes.`addIfExists(String attrName, Object paramValue, boolean encode)` Add a key/value pair to the attributes only if the value is not null.
    `Attributes` | Attributes.`addIfTrue(String attrName, Object paramValue)` Add a key/value pair to the attributes only if the value is not null and is a boolean with a value of 'true'.

    Methods in org.apache.struts2.views.java with parameters of type Attributes
    Modifier and Type | Method and Description
    --- | ---
    `void` | TagHandler.`start(String name, Attributes attributes)` Write a tag openening, with its attributes
    `void` | XHTMLTagSerializer.`start(String name, Attributes attrs)`

  - ### Uses of Attributes in org.apache.struts2.views.java.simple

    Methods in org.apache.struts2.views.java.simple with parameters of type Attributes
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | DynamicAttributesHandler.`processDynamicAttributes(Attributes a)`
    `void` | DynamicAttributesHandler.`start(String name, Attributes a)`
    `void` | ScriptingEventsHandler.`start(String name, Attributes a)`
    `void` | NonceHandler.`start(String name, Attributes a)`
    `void` | CommonAttributesHandler.`start(String name, Attributes a)`
    `void` | AbstractTagHandler.`start(String name, Attributes a)`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.