Hi, Hope you can help, I am trying to reference a java bean from a JSP page that is running on tomcat.
I'm not sure if I have put all the files in the correct directory or if I need to change my classpath in order to compile the java beans/jsp pages.
The java beans have all been added to one package called ceerd1.
Here is the error I get when I try to open the JSP file (index.jsp) on the server:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 31 in the jsp file: /ceerd1/index.jsp
Generated servlet error:
/usr/local/tomcat/work/localhost/_/ceerd1/index$jsp.java:86: Class org.apache.jsp.dynamicResultSet not found.
dynamicResultSet dynRS = null;
^
The source for the java beans is this:
http://www.macs.hw.ac.uk/~ceerd1/dynamicResultSet.java
Here is the opening lines for the JSP file also:
http://www.macs.hw.ac.uk/~ceerd1/index.jsp
{NOTE: THIS IS JUST A TEMP DIRECTORY FOR STORING THE FILES. ITS NOT WHERE ALL THE OTHER FILES FOR THE SITE ARE KEPT}
The directory that the JSP files are put in is:
/tomcat/webapps/ROOT/ceerd1/
the java beans are put in:
/tomcat/webapps/examples/WEB-INF/classes
If you need mmore information about what I've wrote let me know.
Thanks