I'm getting the following error.....
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 17 in the jsp file: /output.jsp
ServicePolicy cannot be resolved to a type
15: String s = (String) session.getAttribute("heehe");
16: out.println("Hello "+s);
17: ServicePolicy obj = (ServicePolicy) session.getAttribute("policy");
18: //out.println("hello1" + obj.Availability);
19: //ServicePolicy p = new ServicePolicy();
20: Object p = (Object) session.getAttribute("policy");
Here servicepolicy is a java class that is there is src folder....
i have one more servlet which calls this output.jsp file.....in that a ServicePolicy object is putinto the session...
when i build it ...there are no errors...but when i run it ...this error comes...
what do i do??
Christophe Verré wrote:This is not a JSP problem that you have here, but an Eclipse problem. Make sure your web application is configured to use your class files. I'm moving your thread to the Eclipse forum.