| Package | Description | 
|---|---|
| com.opensymphony.xwork2 | Main XWork interfaces and classes. | 
| com.opensymphony.xwork2.ognl | |
| com.opensymphony.xwork2.validator | XWork validation subsystem. | 
| com.opensymphony.xwork2.validator.validators | XWork default validator classes. | 
| org.apache.struts2 | |
| org.apache.struts2.action | |
| org.apache.struts2.components | |
| org.apache.struts2.dispatcher | This package contains a reimagining of the traditional Struts filter dispatchers. | 
| org.apache.struts2.interceptor | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ResourceBundleTextProviderExtension Interface for TextProvider to help supporting ResourceBundles. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CompositeTextProviderThis is a composite  TextProviderthat takes in an array orListofTextProviders, it will
 consult each of them in order to get a composite result. | 
| class  | DefaultTextProviderDefaultTextProvider gets texts from only the default resource bundles associated with the default bundles. | 
| class  | TextProviderSupportDefault TextProvider implementation. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected TextProvider | StrutsTextProviderFactory. defaultTextProvider | 
| Modifier and Type | Method and Description | 
|---|---|
| TextProvider | StrutsTextProviderFactory. createInstance(Class clazz) | 
| TextProvider | TextProviderFactory. createInstance(Class clazz) | 
| TextProvider | StrutsTextProviderFactory. createInstance(ResourceBundle bundle) | 
| TextProvider | TextProviderFactory. createInstance(ResourceBundle bundle) | 
| protected TextProvider | StrutsTextProviderFactory. getTextProvider(Class clazz) | 
| protected TextProvider | StrutsTextProviderFactory. getTextProvider(ResourceBundle bundle) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | StrutsTextProviderFactory. setDefaultTextProvider(TextProvider defaultTextProvider) | 
| Constructor and Description | 
|---|
| CompositeTextProvider(TextProvider[] textProviders)Instantiates a  CompositeTextProviderwith some predefinedtextProviders. | 
| Constructor and Description | 
|---|
| CompositeTextProvider(List<TextProvider> textProviders)Instantiates a  CompositeTextProviderwith some predefinedtextProviders. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected TextProvider | OgnlValueStackFactory. textProvider | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | OgnlValueStackFactory. setTextProvider(TextProvider textProvider) | 
| Constructor and Description | 
|---|
| OgnlValueStack(ValueStack vs,
              XWorkConverter xworkConverter,
              CompoundRootAccessor accessor,
              TextProvider prov,
              boolean allowStaticFieldAccess)Deprecated. 
 since 6.4.0, use  OgnlValueStack(ValueStack, XWorkConverter, RootAccessor, TextProvider, SecurityMemberAccess)instead. | 
| OgnlValueStack(ValueStack vs,
              XWorkConverter xworkConverter,
              RootAccessor accessor,
              TextProvider prov,
              SecurityMemberAccess securityMemberAccess) | 
| OgnlValueStack(XWorkConverter xworkConverter,
              CompoundRootAccessor accessor,
              TextProvider prov,
              boolean allowStaticFieldAccess)Deprecated. 
 since 6.4.0, use  OgnlValueStack(XWorkConverter, RootAccessor, TextProvider, SecurityMemberAccess)instead. | 
| OgnlValueStack(XWorkConverter xworkConverter,
              RootAccessor accessor,
              TextProvider prov,
              SecurityMemberAccess securityMemberAccess) | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ValidatorContextThe context for validation. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DelegatingValidatorContextA default implementation of the  ValidatorContextinterface. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected TextProvider | DelegatingValidatorContext. getTextProvider() | 
| TextProvider | DelegatingValidatorContext. makeTextProvider(Object object,
                TextProviderFactory textProviderFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | DelegatingValidatorContext. setTextProvider(TextProvider textProvider) | 
| Constructor and Description | 
|---|
| DelegatingValidatorContext(ValidationAware validationAware,
                          TextProvider textProvider,
                          LocaleProvider localeProvider)Creates a new validation context given a ValidationAware object, and a text and locale provider. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | VisitorFieldValidator.AppendingValidatorContext | 
| Constructor and Description | 
|---|
| AppendingValidatorContext(ValidatorContext parent,
                         TextProvider textProvider,
                         String field,
                         String message) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ActionSupportProvides a default implementation for the most common actions. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected TextProvider | ActionSupport. getTextProvider()If called first time it will create  TextProviderFactory,
 inject dependency (ifContaineris accesible) into in,
 then will create newTextProviderand store it in a field
 for future references and at the returns reference to that field | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CspReportActionAn abstract Action that can be extended to process the incoming CSP violation reports. | 
| class  | DefaultCspReportActionThe default implementation of  CspReportActionthat simply logs the JSON object
 that contains the details of the CSP violation. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | Date. formatTime(TextProvider tp,
          ZonedDateTime date)Calculates the difference in time from now to the given date, and outputs it nicely. | 
| void | I18n. setTextProvider(TextProvider textProvider) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultActionSupportA simple action support class that sets properties to be able to serve | 
| Modifier and Type | Method and Description | 
|---|---|
| protected TextProvider | AbstractFileUploadInterceptor. getTextProvider(Object action) | 
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.