需要验证是否有以下错误.
是 get 还是 post 传参
1. 第四个可能性就是在web.xml中需要设置一个Filter ,将编码设置成utf-8
struts-cleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
struts-cleanup
/*
2. 第一个可能性是显示的jsp里面的content-type要设置对.
3. 第二个就是jsp文件的编码需要是ASCII编码形式
4. 第三个就是应用服务器的版本, 如果是tomcat 的话,5.5版本后需要在每个页面都设置
在server.xml中
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000" useBodyEncodingForURI="true"
disableUploadTimeout="true" URIEncoding=”UTF-8”/>
加上就可以.
如果还有问题可能就是数据库的问题.
数据库的连接字符串需要设置对.
posted on 2009-10-11 19:20 狂淘 阅读(3288) 评论(0) 编辑 收藏 所属分类: struts2.0 spring hiberate