D:\tomcat\jakarta-tomcat-4.1.27\work\Standalone\localhost\examples\jsp\projsp\datebean_jsp.java:47: cannot resolve symbol symbol : class DateFormatBean location: package jsp jsp.DateFormatBean date = null; ^
An error occurred at line: 3 in the jsp file: /jsp/projsp/datebean.jsp
Generated servlet error: D:\tomcat\jakarta-tomcat-4.1.27\work\Standalone\localhost\examples\jsp\projsp\datebean_jsp.java:49: cannot resolve symbol symbol : class DateFormatBean location: package jsp date = (jsp.DateFormatBean) pageContext.getAttribute("date", PageContext.PAGE_SCOPE); --------------
It seems JSP file is not able to find the class file. As I kept class file in classpath also it should not give error message.
Please let me know reasons.
Joined: Feb 20, 2004
I don't have access to the JDK now, but have you tried adding <%@page import="jsp.DateFormatBean"%> to the JSP?