<%@ 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"/>
<%@ 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"/>
解决方案 »
- 求J2EE 5.0或者6.0有中文版API.
- SSH框架中DAO注册不了,帮忙!!
- struts1.x问题
- 配置spring2。0后 启动tomcat后报错 请高手帮忙 no declaration can be found for element 'aop:config'
- CSV读取数据到Excel表格中(至少支持10万条数据)
- 用hibernate生成时候的错误,请指点。
- SQL Server长度为720的字符串为什么存不进数据表
- Hibernate 的session接口是由那个类实现的
- 在struts页面上往文本框里输入值,然后提交,当再打开页面时文本框里有刚才输入的值,这怎么解决,应该是空的才对
- 关于j2ee中显示中文的问题
- 新手求助hibernate高手
- struts中使用DataSource时,一定要使用struts-legacy吗?
你后来再写response.setContentType("text/html;charset=gb2312");//这句没用,已经生成了ContentType了
建议你用GBK这样兼容性会好一些
<%@ page contentType="text/html;charset=GB2312"%>
显示的是中文的。不用response.setContentType()这个方法,最好用jsp的指令来做。
<%@ page contentType="text/html;charset=GB2312"%>
<fmt:requestEncoding value="gb2312"/> 用这个标签如果还不行就和我联系40611854