当前页面: 开发资料首页 → 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"%>