************* index_top.tag文件内容************
<div >最顶部</div>************index.jsp文件内容****************
<%@page pageEncoding="GBK"%>
<%@page contentType="text/html; charset=GBK"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>这是首页</title>
<body>
测试
<tags:index_top/>
</body>
</html>现在问题是,index_top.tag文件里面的内容,在index.jsp里面显示的是乱码全是????号。。
而index.jsp文件中的中文可以正常显示,请各位前辈说一下如何解决这个问题。 。
<div >最顶部</div>************index.jsp文件内容****************
<%@page pageEncoding="GBK"%>
<%@page contentType="text/html; charset=GBK"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>这是首页</title>
<body>
测试
<tags:index_top/>
</body>
</html>现在问题是,index_top.tag文件里面的内容,在index.jsp里面显示的是乱码全是????号。。
而index.jsp文件中的中文可以正常显示,请各位前辈说一下如何解决这个问题。 。
解决方案 »
- ajax 循环发送多条数据时接收不到后台发过来的数据【Servlet】
- 获取数据连接??
- 我刚接触手机网站,wml参数怎么样传到jsp里面
- 关于<%@paga%>中,有个错误!!!
- IIS+Resin下如何配置所有的请求都转发到resin
- Java操作Excel,用哪个更好一些?谢谢
- 关于一个javascript的问题
- (转贴)编写线程安全的JSP应用程序
- 谁用过jfreereport或jaxperreport做过报表?各位大哥帮忙呀!!!--就20分了
- ★★★我的MS JDBC有错吗,错在哪里,为什么?不能用中文查询数据,我想是驱动的问题,不知有人已解决了这个问题,请教!
- 另一个数据库调用的经典问题
- 50分:请问做个模态刷新的问题
<%@page pageEncoding="GBK"%>
<%@page contentType="text/html; charset=GBK"%>
在index_top.tag文件的正文,加上下面这一句
<%@ tag language="java" pageEncoding="GBK"%>就可以了。。呵