摘要: http://www.blogjava.net/max/archive/2006/11/01/78536.html <h2><s:text name="HelloWorld"/></h2> <h2><s:property value="%{getText('HelloWorld')}"/></h2>Struts2中提供了如下两种方式来填充消息字符串中的占位符(1)JSP页面,在<s:text.../>标签中使用多个<s:param.../>标签 阅读全文
posted @ 2013-01-24 23:21 Brook Legend 阅读(1138) 评论(0) 推荐(0)
摘要: 在struts.xml里面加入: http://jinlixiang.iteye.com/blog/1494975http://www.cnblogs.com/langlang/archive/2010/01/14/1647627.html<constant name="struts.custom.i18n.resources" value="globalMessages" /> 如下: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE 阅读全文
posted @ 2013-01-24 23:07 Brook Legend 阅读(328) 评论(0) 推荐(0)