<%@ include file=""/>报错

来源:互联网 发布:如何评价张国荣 知乎 编辑:程序博客网 时间:2024/05/16 08:11
2015-10-13 11:56:57 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [appServlet] in context with path [/helloan] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/views/public/publicLayoutHome.jsp'.] with root cause

org.apache.jasper.JasperException: /WEB-INF/views/public/financial/financials/financial.jsp (line: 4, column: 1) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8, new: text/html; charset=utf-8)

出现这种报错是因为嵌套页面出现新页面

的contentType=“text/hmtl”; charset="utf-8"和主页面不对应,把新页面所有的utf-8都改为UTF-8就可以了。

0 0
原创粉丝点击