I recently upgraded from tomcat 3.2 to tomcat 4.1.18
The problem seems to be that I used to be able to call a jsp:useBean properly.
This was working in tomcat 3.2:
<!-- <%@ page import = "Counter" %> -->
<!-- Instantiate the Counter bean with an id of "counter" -->
<jsp:useBean id="counter" scope="session" class="Counter" />
However, now the JSP pages doesn't seem to know where the Counter.class file is.
It is in: <serverpath>/webapps/WEB-INF/classes/
I honestly do not know what changes need to be made in the JSP page to make the call to Counter.class succeed.
Does the Counter.class file need to be in a subdirectory
of classes? If not, what should the import look like since its not in a package, just in the root of classes.
I presume I need a properly defined web.xml file, however my brain is fried as I cannot seem to define it properly. This is what I tried:
Note: I also tried:
This is the resulting ERROR REFERENCE:
7: '.' expected
/<serverpath>/webapps/PageBean_jsp.java:46: cannot resolve symbol
symbol : class Counter
location: class org.apache.jsp.PageBean_jsp
Counter counter = null;