java - Struts 2 text tag weird behavior -
java - Struts 2 text tag weird behavior -
i using struts2 text tag, translated value. so, have next statement:
class="lang-jsp prettyprint-override"><s:text name="a"/>
i don't have key 'a'
in properties files, in action, have object name a
.
what happens value rendered s:text class name of object instance (package.a@xyz
)!
is normal? know struts2, if no property key found, rendered value key (text tag name attribute). did ever happened anyone?
i think normal, because struts2 parses attributes ognl expression, , result of look evaluation used message key. doc says searchvaluestack
should used prevent searches in value stack. 1 improve decide you, prefer <s:property value="gettext('a')"/>
alternative.
java jsp struts2 resourcebundle ognl
Comments
Post a Comment