<%@ page session="true" %>
<%@ page contentType="text/html;charset=gb2312" %><%@ include file="incdb.jsp"%>
<jsp:useBean id="bbs" class="test.bbs" scope="page"/>
<jsp:useBean id="board" class="test.bbsboard" scope="page"/>
<jsp:useBean id="bbscom" class="test.bbscom" scope="page"/>

解决方案 »

  1.   

    <%@ page contentType="text/html;charset=gb2312" %>
      

  2.   

    jsp里面声明写成<%@ page contentType="text/html; charset=gb2312" %>
    你后来再写response.setContentType("text/html;charset=gb2312");//这句没用,已经生成了ContentType了
      

  3.   

    <%@ page contentType="text/html; charset=GBK" %>
    建议你用GBK这样兼容性会好一些
      

  4.   

    建议你用tomcat5
    <%@ page contentType="text/html;charset=GB2312"%>
    显示的是中文的。不用response.setContentType()这个方法,最好用jsp的指令来做。
      

  5.   

    你只要JSP文件中添加这一句就可以了:
    <%@ page contentType="text/html;charset=GB2312"%>
      

  6.   

    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <fmt:requestEncoding  value="gb2312"/> 用这个标签如果还不行就和我联系40611854