i18n and text tags (Miscellaneous Tag)

18 tag
i18n tag has 'name' attribute. It is mandatory. Its type is string.
In this name attribute you can specify the name of the resouce bungle from where you want to read the messages for keys.

text tag
text tag has 'name' and 'var' attributes.
inside the 'name' attribute you specify the key name. That key value will be taken from the resource bundle.
var attribute is used to create a reference in a ActionContext and to store the value obtained from the 'name' attribute.

Example
<s:i18n name="name_of_resource_bundle">
Language: <s:text name="language" />
<s:text name="movie" var="movieName"/>
</s:i18n>

MovieName: <s:property value="#movieName" />

Here the first <s:text> tag will take the language value from the resource bundle file and directly display it.
The second <s:text> will take the value of the movie from the resource bundle file and store it in a movieName reference in an ActionContext.