org.apache.struts2.components

## Class ContextBean

- java.lang.Object
- - org.apache.struts2.components.Component
  - - org.apache.struts2.components.ContextBean

- Direct Known Subclasses:
    ActionComponent, AppendIterator, Bean, Date, IteratorComponent, MergeIterator, Number, Set, Text, URL

      public abstract class ContextBean
      extends Component

  Base class for control and data tags

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String` | `var`

    - ### Fields inherited from class org.apache.struts2.components.Component

      `actionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailure`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContextBean(ValueStack stack)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `getVar()`
    `protected void` | `putInContext(Object value)`
    `void` | `setVar(String var)`

    - ### Methods inherited from class org.apache.struts2.components.Component

      `addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isAcceptableExpression, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setNotExcludedAcceptedPatterns, setThrowExceptionsOnELFailure, setUrlHelper, start, stripExpressionIfAltSyntax, toString, usesBody`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### var

          protected String var

  - ### Constructor Detail

    - #### ContextBean

          public ContextBean(ValueStack stack)

  - ### Method Detail

    - #### putInContext

          protected void putInContext(Object value)

    - #### setVar

          public void setVar(String var)

    - #### getVar

          protected String getVar()

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