sp.printHTML("Cannot lookup SB_PutBidNow: " +e+"<br>");
printError("Cannot lookup SB_PutBidNow: " +e+"<br>");
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException  {    String itemStr = request.getParameter("itemId");    String name = request.getParameter("nickname");    String pass = request.getParameter("password");    sp = new ServletPrinter(response, "PubBid");        if ((itemStr == null) || (itemStr.equals("")) ||        (name == null) || (name.equals(""))||        (pass == null) || (pass.equals("")))    {      printError("Item id, name and password are required - Cannot process the request<br>");      return ;    }    Context initialContext = null;    try    {      initialContext = new InitialContext();    }     catch (Exception e)     {      printError("Cannot get initial context for JNDI: " + e+"<br>");      return ;    }    SB_PutBidHome putBidHome;    SB_PutBid putBid ;     try     {      putBidHome = (SB_PutBidHome)PortableRemoteObject.narrow(initialContext.lookup("SB_PutBidHome"),                                                     SB_PutBidHome.class);     putBid  = putBidHome.create();    }     catch (Exception e)    {      sp.printHTML("Cannot lookup SB_PutBidNow: " +e+"<br>");      return ;    }   try    {      Integer itemId = new Integer(itemStr);      // Display the form for bidding      String html = putBid.getBiddingForm(itemId, name, pass);      sp.printHTMLheader("RUBiS: PutBid");      sp.printHTML(html);      sp.printHTMLfooter();    }    catch (Exception e)    {      printError("This item does not exist (got exception: " +e+")<br>");      return ;    }   }