Geeks Talk

Prepare for your Next Interview




I am getting an error type hello not found

This is a discussion on I am getting an error type hello not found within the JSP forums, part of the Web Development category; 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 ...


Go Back   Geeks Talk > Web Development > JSP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-19-2007
Junior Member
 
Join Date: Apr 2007
Location: shimoga
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
vidya_kr is on a distinguished road
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 06:44 AM. Reason: need clarification
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-05-2007
Junior Member
 
Join Date: Sep 2006
Location: india
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
batman11 is on a distinguished road
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
Reply With Quote
  #3 (permalink)  
Old 06-15-2007
Junior Member
 
Join Date: May 2007
Location: Bangalore
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post
sweet_person is on a distinguished road
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.
Reply With Quote
The Following User Says Thank You to sweet_person For This Useful Post:
Reply

  Geeks Talk > Web Development > JSP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Library not registered / Error -27979: Requested form not found mabobine LoadRunner 2 01-06-2008 02:23 AM
Object repository not found Geek_Guest QTP 3 04-19-2007 12:50 PM
Script is not running properly getting Window was not found error Geek_Guest SilkTest 1 04-18-2007 08:16 AM
Found bug in User Interface Testing bharathi_ark Testing Issues 2 12-09-2006 05:30 AM
Type of Error for Variables not declared in function fred C and C++ 1 07-12-2006 05:31 PM


All times are GMT -4. The time now is 12:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved