sp.printHTML("Cannot lookup SB_ViewBidHistory: " +e+"<br>");
printError("Cannot lookup SB_ViewBidHistory: " +e+"<br>");
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException  {    String  value = request.getParameter("itemId");    Integer itemId;        sp = new ServletPrinter(response, "ViewBidHistory");    if ((value == null) || (value.equals("")))    {      sp.printHTMLheader("RUBiS ERROR: View bids history");      sp.printHTML("<h3>You must provide an item identifier !<br></h3>");      sp.printHTMLfooter();      return ;    }    else      itemId = new Integer(value);    sp.printHTMLheader("RUBiS: Bid history");    try    {      initialContext = new InitialContext();    }     catch (Exception e)     {      sp.printHTML("Cannot get initial context for JNDI: " + e+"<br>");      sp.printHTMLfooter();      return ;    }    SB_ViewBidHistory viewBid;    try     {      SB_ViewBidHistoryHome viewBidHome = (SB_ViewBidHistoryHome)PortableRemoteObject.narrow(initialContext.lookup("SB_ViewBidHistoryHome"),                                                                                             SB_ViewBidHistoryHome.class);      viewBid = viewBidHome.create();    }     catch (Exception e)    {      sp.printHTML("Cannot lookup SB_ViewBidHistory: " +e+"<br>");      return ;    }        try    {      sp.printHTML(viewBid.getBidHistory(itemId));    }    catch (Exception e)    {      sp.printHTML("Cannot get bids history (got exception: " +e+")<br>");      sp.printHTMLfooter();      return ;    }    sp.printHTMLfooter();  }