struts2 - Struts program does not show properties value -


i try program of struts show french value...for have define properties in message.properties file , in message_fr.properties files. @ run time when access value of property show blank space. have include struts2-core-2.1.8.1.jar, struts2-json-plugin-2.1.8.1.jar on classpath.

for example define in properties file: pro.color=blue

on jsp page:

<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib uri="/user" prefix="user" %>   <s:property value="pro.color"/> 

now show blank space.

try this:

<s:property value="%{gettext('pro.color')}"/> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -