Hi Folks,
I have setup Tomcat4.1 along with all the default directories.
I have got jdk1.4.1 installed on my machine.
All my java code is compiling very well into classes.

I don't have any idea about setting up of Tomcat, but having some knowledge of ASP and IIS, I was able to figure out a virtual directory and output a few lines of code from a jsp page.
My problem is in getting a jsp to call a java class.

Please help me. So far I have tried putting a class inside the webdav folder and that has not worked. Then I put the class into the web-inf/classes folder and that has not worked either.
[color=orange-red]
I am using the <%@page import="hello"%> as the first line of my page. Could someone please give me a simple line by line instruction as to what I need to do?[/color]

Here are the errors that I am getting.

Code:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 0 in the jsp file: /folks.jsp

Generated servlet error:
    [javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\webdav\folks_jsp.java:41: cannot resolve symbol
symbol  : class hello 
location: class org.apache.jsp.folks_jsp
      hello sayHi = null;
      ^



An error occurred at line: 0 in the jsp file: /folks.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\webdav\folks_jsp.java:43: cannot resolve symbol
symbol  : class hello 
location: class org.apache.jsp.folks_jsp
        sayHi = (hello) pageContext.getAttribute("sayHi", PageContext.SESSION_SCOPE);
                 ^



An error occurred at line: 0 in the jsp file: /folks.jsp

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\webdav\folks_jsp.java:46: cannot resolve symbol
symbol  : class hello 
location: class org.apache.jsp.folks_jsp
            sayHi = (hello) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "hello");
                     ^
3 errors
Cheers,
Abhijit