码迷,mamicode.com
首页 > 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:54      阅读:182      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!