码迷,mamicode.com
首页 > Web开发 > 详细

报错:org.apache.jasper.JasperException: /jsp/head.jsp (line: 1, column: 2) Page directive: illegal to

时间:2018-08-09 23:11:25      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:tip   sdn   blog   http   directive   new   log   java   set   

技术分享图片

上面报错提示的是org.apache.jasper.JasperException: /jsp/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=utf-8)
即:在/ jsp /head.jsp中(行:1,列:2)页指令:非法有多个不同值的内容类型(旧的:文本/ html;charset = utf - 8,新:text / html;charset = utf - 8),可查看头部信息是否过期,如过期错误的写法:

技术分享图片

 

应该改为:

 

技术分享图片

同时如果头部写法无错误,仍然报org.apache.jasper.JasperException错误则考虑是否<%@taglib prefix="c"uri="http://java.sun.com/jsp/jstl/core"%>书写有误,可能没有写等于号(=),或者标点符号少写或有误。

报错:org.apache.jasper.JasperException: /jsp/head.jsp (line: 1, column: 2) Page directive: illegal to

标签:tip   sdn   blog   http   directive   new   log   java   set   

原文地址:https://www.cnblogs.com/borter/p/9451988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!