在eclipse 中,webapp 中jsp 文件引用的静态方法,为什么会出现错误?
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 4 in the jsp file: /index.jsp
Eunphoy cannot be resolved
1: <%@ page language="java" contentType="text/html; charset=GB2312"
2: pageEncoding="GB2312"%>
3: <%
4: String str=Eunphoy.getHello();
5: out.println(str);
6: %>跪求解答..
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 4 in the jsp file: /index.jsp
Eunphoy cannot be resolved
1: <%@ page language="java" contentType="text/html; charset=GB2312"
2: pageEncoding="GB2312"%>
3: <%
4: String str=Eunphoy.getHello();
5: out.println(str);
6: %>跪求解答..
如果是个类,怎么不见你导入???
没导入jar Eunphoy类
<%@page import="xxx.xxx.Eunphoy"%>