jsp页面
<%@page contentType="text/html; charset=gbk"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html>
<head>
<title>
test
</title>
</head>
<body bgcolor="#ffffff">
<h1></h1>
<html:form action="TestAction.do" method="POST">
<html:errors/>
<html:text property="id"></html:text>
<html:submit value="提交">
</html:submit>
</html:form>
</body>
</html>
在我的工程下设置了encoding.bat :
set java_home=C:\Borland\JBuilder2006\jdk1.5
set PROJECT_PATH=D:\teststrutsdel %PROJECT_PATH%\src\ApplicationResources_ZH_CN.properties
%JAVA_HOME%\bin\native2ascii -encoding GBK %PROJECT_PATH%\src\ApplicationResources.properties %PROJECT_PATH%\src\ApplicationResources_ZH_CN.properties
pause这个.bat文件运行也通过了  在工程下也生成了ApplicationResources_ZH_CN.properties
可为什么页面出来的验证信息还是乱码