Hi guys, Im having a huge problem trying to initialize a class in jsp file. I am using NetBeans as my IDE. I have a simple index.jsp page, I want to create an instance of the fllowing class in my jsp file.

Code:
public class t {
    
    public t() {
    }
    
    public void say(){
        System.out.print("hi");
    }
    
}
This is the code in my jsp file
Code:
<%
    t v= new t();
    v.say();

%>
When i run the index page i get the following error message.
Code:
cannot find symbol
symbol  : class t
location: class org.apache.jsp.index_jsp
    t v= new t();
    ^
I have no idea what im doing wrong. Where do I place Class files? Do I have to configure anyhing like my web.xml in WEB-INF folder? Please can some one help. I dont want to use a Bean. Im porting a desktop application into a web application. It is part of my assignment.

I would appreciate any help.