ecplise 设置web
1 ecplise编码格式tomcat
右键 在general-workspace- text file encoding 选择utf-8服务器
2 jsp文件编码格式 web-jspfile-encodingeclipse
tomcat设置jsp
1 URl地址中传递值的编码格式配置,使能够传递中文格式的值, services-service- 添加xml-URLEncoding="gbk"到Connector标签中编码
<Connector URLEncoding="gbk" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
2 方便代码编写编译,修改代码不须要重启服务器。 services-service-设置reloadable="false"spa
<Context docBase="myWeb" path="/myWeb" reloadable="false" source="org.eclipse.jst.jee.server:myWeb"/></Host>