org.apache.jasper.JasperException: /jsp/room/../message.jsp(1,3) Page directive:
程序员文章站
2022-03-03 08:13:41
...
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这句代码位置不对。所以只要把它们搞成位置一致就可以了。
上一篇: java的mds加密