Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » components » [javadoc | source]
org.apache.struts2.components
public class: I18n [javadoc | source]
java.lang.Object
   org.apache.struts2.components.Component
      org.apache.struts2.components.I18n
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.

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>


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
Constructor:
 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)