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.
This is the code in my jsp fileCode:public class t { public t() { } public void say(){ System.out.print("hi"); } }
When i run the index page i get the following error message.Code:<% t v= new t(); v.say(); %>
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.Code:cannot find symbol symbol : class t location: class org.apache.jsp.index_jsp t v= new t(); ^
I would appreciate any help.


Reply With Quote


Bookmarks