Listing D
   public void doGet(HttpServletRequest req,
                     HttpServletResponse res)
      throws ServletException, IOException
   {
      HttpSession session = req.getSession();
      Integer myInteger = (Integer)session.getAttribute("AnIntID");
      session.setAttribute("MyNewObjID",
                           new String("Value for new object"));
   }