/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=ut


这是jsp错误,

  1. 不允许contentType="text/html; charset=UTF-8",有空格。

    之前错误写法为:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

    正确写法为:<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

  2.在我的jsp页面(A页面)有引入其他的jsp页面(B页面),两个页面的抬头不相同导致的错误。

    A页面:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 "> 转!! 关于jsp编码设置 <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> 响应消息的内容类型 text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。 "响应消息的内容类型 text/html; charset=utf-8 与绑定(text/xml; charset=utf-8)的内容类型不匹配。"问题的解决办法 "> HTML系列 -> Content type 'text/xml;charset=UTF-8' not supported Content type 'text/plain;charset=UTF-8' not supported SpringBoot报错:Content type 'text/plain;charset=UTF-8' not supported 关于表格的一些练习

一个普通基本的表格

HTML表格和列表笔记&练习关于表格的一些练习

一个普通基本的表格

jersey处理支付宝异步回调通知的问题:java.lang.IllegalArgumentException: Error parsing media type 'application/x-www-form-urlencoded; text/html; charset=UTF-8' 爬取'Content-Type': 'text/plain;charset=UTF-8' ,发送请求数据方式
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM