Here is the code for my class!
here is the code for my jsp page.Code:class hello { public static void main(String[] args) { System.out.println("Hello World!"); } public static String callme() { return "Trick Or Treat!"; } }
I have got TomCat installed on my machine. My class is lying in the same folder as the jsp. If I comment out the first and last line of code, I get the Big Hello from Tomcat.Code:<%@page import ="hello" %> <% out.println("Hi Folks. Big Hello From TomCat!"); out.println(hello.callme()); %>
What do I need to fix?
I am getting errors.
Cheers,
Abhijit


Reply With Quote
