JSP报错Syntax error, insert ";" to complete Statement

org.apache.jasper.JasperException: Unable to compile class for JSP: 
An error occurred at line: 7 in the jsp file: /WEB-INF/view/footer.jsp
Syntax error, insert ";" to complete Statement

解决方式:

<img src="<%request.getContextPath()%>/image/beian.png" width="12px" height="12px"/>

改成

<img src="<%=request.getContextPath()%>/image/beian.png" width="12px" height="12px"/>

posted @ 2018-02-06 13:39  javakam  阅读(1807)  评论(0编辑  收藏  举报