JSPs seem to offer more than one way of storing Objects to a session
context for session tracking purposes.
Both these seem to work Ok in my JSP code on Tomcat 5.0.x:
// using pageContext with session scope
pageContext.setAttribute("name", myObject, PageContext.SESSION_SCOPE);
// using the session context of HttpServlet
session.setAttribute("name",myObject);
Whats the difference here? Is there a preferred way to do this?
Thanks
Bruce