开发者

Struts program does not show properties value

开发者 https://www.devze.com 2023-01-19 00:34 出处:网络
i am try a program of Struts to show french value...for this i have define properties in message.properties file and in message_fr.properties files.but at run time when i access value of property it s

i am try a program of Struts to show french value...for this i have define properties in message.properties file and in message_fr.properties files. but at run time when i access value of property it show blank space. i have include struts2-core-2.1.8.1.jar, struts2-json-plugin-2.1.8.1.jar on classpath.

for example def开发者_开发百科ine 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 it show blank space.


Try this:

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

精彩评论

暂无评论...
验证码 换一张
取 消