I am getting an error type hello not found
I need to include a java file say
public class Hello {
public String say() {
return "Hello";
}
}
I have complied it and included it in webapps/WEB-INF/class directory.
and written jsp code but i am getting an error type hello not found.
i even create web.xml file,
How to correct it?
Any extra thing to be set?
Please help me.
Thank you in advance
Re: I am getting an error type hello not found
can u give me ur jsp code... hw r u trying to access the class from jsp
Re: I am getting an error type hello not found
you invoke your Hello class using these methods
<% Hello hello=new Hello();%>
<%=hello.say()%>
You will definitely not get the error. and make sure that you place Hello class in the web-inf/classes directory.