日期:2014-05-20  浏览次数:20679 次

最后两个小问题。。。
response.sendRedirect("ksdr.jsp");  
response.setCharacterEncoding("text/html;gb2312");


------解决方案--------------------
setCharacterEncoding

public void setCharacterEncoding(String charset)

charset 应该是一个服务器支持的字符集,
eg :utf-8,gb2312,gbk 等字符集

所以方法对于你传递的参数:"text/html;gb2312" 在他所支持的字符集里面没有找到,所以他说,他不支持这种字符集编码!

关于sendRedirect 方法,可能你的response已经提交,到底是怎么引起的,就要看代码了!