org.apache.jasper.JasperException: Unable to compile class for JSP: List cannot be resolved to a type 错误

来源:互联网 发布:小学生网络字典 编辑:程序博客网 时间:2024/05/24 00:16

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 163 in the jsp file:

/touch/management/permission/adminManagement.jsp
List cannot be resolved to a type

 <%
162:   SysUser user = SysContext.getSysUserFromSession();
163:   List<UserFunction> funs = user.getAllMenus();
.......

 

 

List cannot be resolved to a type表示List不能被定义为一个类型
这个错误要导入java.util.*包,

 

 

在jsp中使用List前加上 <%@ page import="java.util.*" %>就可以解决问题

原创粉丝点击