Howdy, This might seem a bit odd but here's the scenario: Using Tomcat 3.1 my application starts up Tomcat and I keep a reference to a Context object that I'm interested in. Within the application I make a URLConnection to a JSP. The JSP page needs to use a bean that my application has initialised. What I do is get the SessionManager from the Context and create a new HttpSession. I then set an attribute in the HttpSession object with the initialised bean. I get the session id and put it in as a cookie session id in the URLConnection. I'm basically faking a session. The JSP's useBean tag has a scope of session and all of this works fine. My problem is how do you do the equivalent with Tomcat 3.0 (or whatever the version of Tomcat in J2EE.jar that comes with Sun's J2SDKEE1.2.1)? I have a reference to the Context object I want but I can only figure a way of setting an attribute at the application level (context.setAttribute(...)). This is bad cos I then have to serialize all my URLConnections. Any pointers would be greatly appreciated. Thanks, Setanta. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
