//bind an object to the servlet context
ContextObject contextObj = new ContextObject();
contextObj.put( request.getRemoteAddr(), ""+new java.util.Date());
request.setAttribute(
"com.jspservletcookbook.RequestObject",contextObj );
//better display something
RequestDispatcher dispatcher = request.getRequestDispatcher("/displayAttr");
dispatcher.forward(request,response);