I have no idea what's going on here...
I have a simple jsp page calling a simple class. The class's entire code is:
public class varSettings {
public static int testVar=16;
}
and it's in the $catalina_home/common/classes directory on my Tomcat server and in my jsp page I put
out.print(varSettings.testVar);
and I get the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 54 in the jsp file: /index.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.28/work/Catalina/www.newworldfreedom.org/_/org/apache/jsp/index_jsp.java:192: cannot resolve symbol
symbol : variable varSettings
location: class org.apache.jsp.index_jsp
out.print(varSettings.testVar);
^
1 error
I've had a few other people look at it and we're all pretty confused. If anyone can provide any help, it'd be awesome!! Thanks.
-Dan
I have a simple jsp page calling a simple class. The class's entire code is:
public class varSettings {
public static int testVar=16;
}
and it's in the $catalina_home/common/classes directory on my Tomcat server and in my jsp page I put
out.print(varSettings.testVar);
and I get the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 54 in the jsp file: /index.jsp
Generated servlet error:
/usr/local/jakarta-tomcat-5.0.28/work/Catalina/www.newworldfreedom.org/_/org/apache/jsp/index_jsp.java:192: cannot resolve symbol
symbol : variable varSettings
location: class org.apache.jsp.index_jsp
out.print(varSettings.testVar);
^
1 error
I've had a few other people look at it and we're all pretty confused. If anyone can provide any help, it'd be awesome!! Thanks.
-Dan