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
14: //ServicePolicy
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??