Rsm Shiva

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsmshiva
    New Member
    • Feb 2007
    • 1

    #1

    Rsm Shiva

    C:\Program Files\Java\jdk1 .5.0_11\bin>jav ac

    ControllerServl et.java
    ControllerServl et.java:14: cannot find symbol
    symbol : class ShowRecordReque stHandler
    location: class servlets.Contro llerServlet
    handlerHash.put ("login.html ", new

    ShowRecordReque stHandler());
    ^
    ControllerServl et.java:15: cannot find symbol
    symbol : class ShowRecordReque stHandler
    location: class servlets.Contro llerServlet
    handlerHash.put ("showInfo.html ",new

    ShowRecordReque stHandler());

    ^
    ControllerServl et.java:21: cannot find symbol
    symbol : class RequestHandler
    location: class servlets.Contro llerServlet
    RequestHandler rh =

    (RequestHandler )handlerHash.ge t(request.getSe rvletPat

    h())
    ;
    ^
    ControllerServl et.java:21: cannot find symbol
    symbol : class RequestHandler
    location: class servlets.Contro llerServlet
    RequestHandler rh =

    (RequestHandler )handlerHash.ge t(request.getSe rvletPat

    h())
    ;
    ^
    4 errors

    How to solve the above errors? Kindly help me?
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    For the first two, I think you have a logic error. You are using new ShowRecordReque stHandler() as if you were creating an object of type ShowRecordReque stHandler, but by the name I think this is actually a function.

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by rsmshiva
      C:\Program Files\Java\jdk1 .5.0_11\bin>jav ac

      ControllerServl et.java
      ControllerServl et.java:14: cannot find symbol
      symbol : class ShowRecordReque stHandler
      location: class servlets.Contro llerServlet
      handlerHash.put ("login.html ", new

      ShowRecordReque stHandler());
      ^
      ControllerServl et.java:15: cannot find symbol
      symbol : class ShowRecordReque stHandler
      location: class servlets.Contro llerServlet
      handlerHash.put ("showInfo.html ",new

      ShowRecordReque stHandler());

      ^
      ControllerServl et.java:21: cannot find symbol
      symbol : class RequestHandler
      location: class servlets.Contro llerServlet
      RequestHandler rh =

      (RequestHandler )handlerHash.ge t(request.getSe rvletPat

      h())
      ;
      ^
      ControllerServl et.java:21: cannot find symbol
      symbol : class RequestHandler
      location: class servlets.Contro llerServlet
      RequestHandler rh =

      (RequestHandler )handlerHash.ge t(request.getSe rvletPat

      h())
      ;
      ^
      4 errors

      How to solve the above errors? Kindly help me?
      You did not import some classes or did not compile them first. Let's start with ShowRecordReque stHandler. Where is this class defined? Did you write it yourself or is it part of the IDE you are using?

      Comment

      Working...