Save This Page
Home » struts- » org.apache » struts2 » components » [javadoc | source]
public class: I18n [javadoc | source]
Gets a resource bundle and place it on the value stack. This allows the text tag to access messages from any bundle, and not just the bundle associated with the current action.


<s:i18n name="myCustomBundle">
   The i18n value for key aaa.bbb.ccc in myCustomBundle is <s:property value="text('aaa.bbb.ccc')" />

<s:i18n name="some.package.bundle" >
     <s:text name="some.key" />

Field Summary
protected  boolean pushed     
protected  String name     
protected  Container container     
Fields inherited from org.apache.struts2.components.Component:
COMPONENT_STACK,  stack,  parameters,  actionMapper,  throwExceptionOnELFailure
 public I18n(ValueStack stack) 
Method from org.apache.struts2.components.I18n Summary:
end,   setContainer,   setName,   start
Methods from org.apache.struts2.components.Component:
addAllParameters,   addParameter,   altSyntax,   altSyntax,   completeExpressionIfAltSyntax,   copyParams,   determineActionURL,   determineNamespace,   end,   end,   fieldError,   findAncestor,   findString,   findString,   findStringIfAltSyntax,   findValue,   findValue,   findValue,   getComponentStack,   getParameters,   getStack,   popComponentStack,   setActionMapper,   setThrowExceptionsOnELFailure,   start,   stripExpressionIfAltSyntax,   stripExpressionIfAltSyntax,   toString,   usesBody
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.components.I18n Detail:
 public boolean end(Writer writer,
    String body) throws StrutsException 
 public  void setContainer(Container container) 
 public  void setName(String name) 
 public boolean start(Writer writer)