Results 1 to 3 of 3

Thread: I am getting an error type hello not found

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Answers
    6

    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

  2. #2
    Junior Member
    Join Date
    Sep 2006
    Answers
    6

    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


  3. #3
    Junior Member
    Join Date
    May 2007
    Answers
    19

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact