前端报错原因解决
HJBZF
大梦想小代码的大阳光
展开
-
报错:org.apache.jasper.JasperException: /jsp/head.jsp (line: 1, column: 2) Page directive: illegal to
上面报错提示的是org.apache.jasper.JasperException: /jsp/head.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurrences of contentType with different values (old: text/html; charset=UTF-8,原创 2018-01-04 20:33:10 · 25120 阅读 · 0 评论 -
关于jsp的路径问题:pageContext.setAttribute("APP_PATH",request.getContextPath());
在写两个界面时候,想通过一个界面head.jsp切换到另一个界面user.jsp,但发出请求时,报错,说404找不到user.jsp的路径,项目部分结构如下图显示:回过头来检查代码相对路径是没有出错的,只是特殊的地方是该界面head.jsp作为头文件,提取出来了,也就是被多个其他页面如createblank.jsp ,mubanfenlei.jsp,myquestionnaires.jsp等一些界...原创 2018-04-07 11:42:38 · 4688 阅读 · 0 评论