/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurre

Posted bkywanly

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurre相关的知识,希望对你有一定的参考价值。

这是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"%>
https://www.cnblogs.com/sllcom/p/7823481.html

以上是关于/WEB-INF/pages/common/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurre的主要内容,如果未能解决你的问题,请参考以下文章