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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -