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"/>

原文地址:https://www.cnblogs.com/jooy/p/8421960.html