1
我尝试了一个Struts程序来显示法语值...为此我已经在message.properties文件和message_fr.properties文件中定义了属性。但在运行时,当我访问属性值时,它显示空白。 我在类路径中包含了struts2-core-2.1.8.1.jar,struts2-json-plugin-2.1.8.1.jar。Struts程序不显示属性值
例如定义属性文件: pro.color=Blue
JSP页面上:
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/user" prefix="user" %>
<s:property value="pro.color"/>
现在它显示空白。