struts.xml配置:
<constant name="struts.custom.i18n.resources" value="package"/>404.jsp页面:
<%@page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><s:property value="%{getText('page.title')}"/></title>
</head>
<body class=main topmargin=30 leftmargin=30>
<span align=center class=alert>
<img src="/szxckin/zh_CN/images/png-0652.png" width=64 height=64/>
<s:property value="%{getText('notfound')}"/>(404 Not Found)!
</span>
</body>
</html>我这样配置了,但运行会出错,提示_jspx_th_s_005fproperty_005f0.setValue("%{getText('page.title')}");这里有错!请各位帮忙。
<constant name="struts.custom.i18n.resources" value="package"/>404.jsp页面:
<%@page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><s:property value="%{getText('page.title')}"/></title>
</head>
<body class=main topmargin=30 leftmargin=30>
<span align=center class=alert>
<img src="/szxckin/zh_CN/images/png-0652.png" width=64 height=64/>
<s:property value="%{getText('notfound')}"/>(404 Not Found)!
</span>
</body>
</html>我这样配置了,但运行会出错,提示_jspx_th_s_005fproperty_005f0.setValue("%{getText('page.title')}");这里有错!请各位帮忙。
这样累不累,直接<s:text name="page.title"/>不就行了?
这样累不累,直接<s:text name="page.title"/>不就行了?
一般不都通过fmt,来实现国际化的马?
把对应的包导进去还是会提示这个错的!