【问题标题】:JSP Page conflict errorJSP页面冲突错误
【发布时间】:2016-03-02 12:22:23
【问题描述】:

我使用resin-3.1.7a作为我的应用服务器,我的大部分jsp文件都是以&65292;It开头在resin-3.0.14&65292中运行良好;但是当我将应用程序移动到resin-3.1.7时,它不起作用,错误是:

contentType 'text/html' 与 contentType 'text/html 之前的值冲突;字符集=UTF-8'。检查 .jsp 和任何包含的 .jsp 文件是否存在冲突。

                   10:  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
                   11:  
                   12:  <%@page contentType="text/html" pageEncoding="UTF-8"%>
                   13:  <!DOCTYPE html>
                   14:   <script type="text/javascript">

【问题讨论】:

    标签: javascript jquery jsp jsp-tags


    【解决方案1】:
    <%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
    

    改为

    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    

    【讨论】:

      猜你喜欢
      • 2012-04-03
      • 1970-01-01
      • 2012-05-06
      • 2015-09-22
      • 1970-01-01
      • 1970-01-01
      • 2015-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多