sp.printHTML("Cannot lookup SB_BuyNow: " +e+"<br>");
printError("Cannot lookup SB_BuyNow: " +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, "BuyNow");        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_BuyNowHome buyHome;    SB_BuyNow buy;     try     {      buyHome = (SB_BuyNowHome)PortableRemoteObject.narrow(initialContext.lookup("SB_BuyNowHome"),                                                     SB_BuyNowHome.class);      buy = buyHome.create();    }     catch (Exception e)    {      sp.printHTML("Cannot lookup SB_BuyNow: " +e+"<br>");      return ;    }     Integer itemId = new Integer(itemStr);     String html;    try     {      sp.printHTMLheader("RUBiS: Buy now");      html = buy.getBuyNowForm(itemId, name, pass);      sp.printHTML(html);      sp.printHTMLfooter();    }    catch (Exception e)    {      sp.printHTML("Cannot get Buy Now form: " +e+"<br>");    }      }