---
title: "org.apache.jasper.JasperException: /jsp/room/../message.jsp(1,3) Page directive:"
author: "java_xiaoyi"
date: "2011-08-22T13:41:57Z"
tags: ["JSP"]
categories: ["编程语言"]
slug: "org-apache-jasper-jasperexception-jsp-room-message-jsp-1-3-page-directive"
draft: false
lastmod: "2011-08-22T13:41:57Z"
id: 1154919
url: "https://easyperson.iteye.com/blog/1154919"
---

```java

org.apache.jasper.JasperException: /jsp/room/../message.jsp(1,3) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=UTF-8 )

```

这个错误比较简单，单就从字面上来看，错误就已经很明朗了，比如我这里就是room.jsp有这么一行代码：<%@include file="/message.jsp"%>,然后这两个页面的text/html; charset=UTF-8这句代码位置不对。所以只要把它们搞成位置一致就可以了。