To bind a
Java object to session, use
request.getSession().setAttribute(
String, Object);
The first argument is the name you give to the object.
To retrieve it use:
reqeust.getSession().getAttribute(String);
You'll need to cast the object back down to it's original type.
So, if you want to cache the entire page to session, write all the text to a String or StringBuffer and bind it to the session.
Why do you want to do this?