-
Junior Member
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
Last edited by vidya_kr; 06-21-2007 at 05:44 AM.
Reason: need clarification
-
Junior Member
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
-
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules