Hi Martin,

Take a look at this example

<s:property value="%{getText('edit.action')}" />
what is displayed when property is displayed in jsp?

I got the same value displayed "edit.action" :( Do you know where I did wrong please?

Thanks a lot!
--
Lu Ying










Date: Wed, 4 Feb 2009 16:50:43 -0500
From: em...@encs.concordia.ca
To: user@struts.apache.org
Subject: getText did not return value in s:submit

Good afternoon,

A question about getText in jsp file. I'd like to get value from property file.

in package.properties,
edit.action=Edit information


in jsp,
...
<s:i18n name="info.ProcessInfo">
  <s:form action="ProcessInfo" >
    <s:submit name="submit" value="%{getText('edit.action')}" />
  </s:form>
</s:i18n>


The result always shows "edit.action" as the button value, but not "Edit information". Could someone tell me where I did wrong please?

Thanks
--
Lu Ying



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


_________________________________________________________________
Windows Liveā„¢: E-mail. Chat. Share. Get more ways to connect. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_022009


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to