首页 > Web开发 > 详细

illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=utf-8)

时间:2015-07-03 10:28:14      阅读:291      评论:0      收藏:0      [点我收藏+]
  • 问题描述:

        在a.jsp通过<%@ include file="b.jsp" %> 的方式引入b.jsp,但是报了标题的中的错误,

  • 问题原因:

        在a.jsp的头部:

          <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

        在b.jsp的头部:

             <%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
发现a.jsp是小写的uft-8,而b.jsp是大写的UTF-8;
  • 解决方法:
          保持两者的头部一致:copy覆盖



illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=utf-8)

原文:http://www.cnblogs.com/firebata/p/jsp.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!