站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2EE 专题JSF页面乱码!(引入ajax4jsf包后出现乱码)

JSF页面乱码!(引入ajax4jsf包后出现乱码)

摘要: JSF页面乱码!(引入ajax4jsf包后出现乱码)


引入ajax4jsf包后出现乱码,页面中已经引入下列代码:
<%@ page pageEncoding="gb2312"%>
<%@ page contentType="text/html; charset=gb2312"%>


乱码部分的代码看一下


<%@ page pageEncoding="gb2312"%>
<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
<%@ taglib uri="http://www.ccb.cn/xmdc" prefix="xmdc"%>



style="position:absolute;top:129px;left:102px;height-fordesign:140px;width:396px"
value="#{userroleBB.userList}" border="1">




















style="position:absolute;top:311px;left:200px;height:21px;width:80px" />
style="position:absolute;top:312px;left:322px;height:21px;width:80px" />

style="position:absolute;top:65px;left:119px;height:21px;width:95px;padding-top:5px"
value="aaaaaaaaaaaaaaaaa">





是因为引入ajax包出现的乱码!此页面有tiles



搞定,是因为tiles里没有引入下列代码:
<%@ page pageEncoding="gb2312"%>
<%@ page contentType="text/html; charset=gb2312"%>



↑返回目录
前一篇: 50分求解决frameset 不刷新
后一篇: EJB3.0规范正式发布时间是什么时候?目前支持EJB3.0的服务器有哪些?