Eclipse for java EE 3.4.1 进行JSP开发,J2SDK和Apache Tomcat已经配置完毕,Eclipse没有进行任何配置。 DispMaster dispmaster = new DispMaster();
dispmaster.setUserName(userName);
Master master = dispmaster.nameToMaster();错误:
Master cannot be resolved to a type同时还有其它很多错误:
Description Resource Path Location Type
Arith cannot be resolved forecast.jsp CaiWu/WebContent line 1729 JSP Problem请问如何解决??
dispmaster.setUserName(userName);
Master master = dispmaster.nameToMaster();错误:
Master cannot be resolved to a type同时还有其它很多错误:
Description Resource Path Location Type
Arith cannot be resolved forecast.jsp CaiWu/WebContent line 1729 JSP Problem请问如何解决??
import ...当然有时候他的提示也是不准确的。
你确定DispMaster继承自Master吗? 提示的不是不能转换吗? 你再检查检查!
恩,楼主,看你分那么高,怎么连这个都不会奇怪!jsp中导入其他的包,是这么写的:
<%@ page import="java.util.*" %>,导入多个包,可以用逗号隔开。Master应该是你自定义的一个类,在jsp要使用,同样也要导入。