public class I18n extends Component
<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 Container |
container |
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 |
setContainer(Container container) |
void |
setName(String name) |
boolean |
start(Writer writer)
Callback for the start tag of this component.
|
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, 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
protected Container container
public I18n(ValueStack stack)
public void setContainer(Container container)
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-2015 Apache Software Foundation. All Rights Reserved.