JSP with user-defined java classes
I have a very simple web application which contains only one JSP file.
In this JSP file i want to use a java class (Calculate.class) that is written by myself.
My class is not in a package. So i simply put it into WEB-INF/classes directory.
But when i run my application i get an error which points a compilation error in JSP page because Calculate.class cannot be find.
Where should i put this class file?
How should i import this class file inside the JSP?
Where should i put the source code for this Calculate class so that it can be recompiled?
PS: I am using Eclipse and Tomcat