前言:
今天在写web应用的时候报错了,我在报错了的地方看了又看,都没看出有什么问题,在网上检索,也全都是一些答非所问的结果。为什么,为什么,满脑子都是为什么,语法没有错啊。
经过:
看了看报错信息:
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 13 in the jsp file: /WEB-INF/node/NavbarFixedTop.jspThis static method of interface UserOperation can only be accessed as UserOperation.getUser10: <%@page contentType="text/html" pageEncoding="UTF-8"%>11: 12: <%13: User navbarFixedTopUser = UserOperation.getUser(request);14: %>15: 16:
Unable to compile class for JSP:无法编译JSP类?我的第一个反应是我的jsp文件语法有问题。。。。。。,但是我怎么看都看不出语法错误在哪里,然后我搜了搜详细的错误信息:This static method of interface UserOperation can only be accessed as UserOperation.getUser