I have a problem using tomcat 4.06, I cannot access any class files from jsp pages. I am using windows 2000
I have created a class file and placed it in
webapps/examples/WEB-INF/classes folder
The jsp files that access this class are in webapps/examples/practice (I created the folder practice)
folder
When I run the jsp file acessing properties of the class file, I am getting this error
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:59: Class org.apache.jsp.UserData not found.
user= (UserData)
^
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:64: Class org.apache.jsp.UserData not found.
user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"
This is the first time I am using classes in tomcat so any help will be welcome
I have created a class file and placed it in
webapps/examples/WEB-INF/classes folder
The jsp files that access this class are in webapps/examples/practice (I created the folder practice)
folder
When I run the jsp file acessing properties of the class file, I am getting this error
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:56: Class org.apache.jsp.UserData not found.
UserData user = null;
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:59: Class org.apache.jsp.UserData not found.
user= (UserData)
^
An error occurred at line: 1 in the jsp file: /practice/SaveName.jsp
Generated servlet error:
C:\tomcat406\work\Standalone\localhost\examples\practice\SaveName$jsp.java:64: Class org.apache.jsp.UserData not found.
user = (UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "UserData"
This is the first time I am using classes in tomcat so any help will be welcome