public class I18n extends Component
Example:
<s:i18n name="myCustomBundle"> The i18n value for key aaa.bbb.ccc in myCustomBundle is <s:property value="text('aaa.bbb.ccc')" /> </s:i18n>
<s:i18n name="some.package.bundle" > <s:text name="some.key" /> </s:i18n>
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected boolean |
pushed |
actionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailure
Constructor and Description |
---|
I18n(ValueStack stack) |
Modifier and Type | Method and Description |
---|---|
boolean |
end(Writer writer,
String body)
Callback for the end tag of this component.
|
void |
setLocaleProviderFactory(LocaleProviderFactory localeProviderFactory) |
void |
setLocalizedTextProvider(LocalizedTextProvider localizedTextProvider) |
void |
setName(String name) |
void |
setTextProvider(TextProvider textProvider) |
void |
setTextProviderFactory(TextProviderFactory textProviderFactory) |
boolean |
start(Writer writer)
Callback for the start tag of this component.
|
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, escapeHtmlBody, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBody
protected boolean pushed
protected String name
public I18n(ValueStack stack)
public void setLocalizedTextProvider(LocalizedTextProvider localizedTextProvider)
public void setTextProvider(TextProvider textProvider)
public void setTextProviderFactory(TextProviderFactory textProviderFactory)
public void setLocaleProviderFactory(LocaleProviderFactory localeProviderFactory)
public boolean start(Writer writer)
Component
public boolean end(Writer writer, String body) throws StrutsException
Component
end
in class Component
writer
- the output writer.body
- the rendered body.StrutsException
public void setName(String name)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.