/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...)