Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 49286 invoked by uid 500); 14 Jun 2001 20:10:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 49237 invoked from network); 14 Jun 2001 20:10:02 -0000 Received: from unknown (HELO typhoon.pop3now.com) (209.208.170.227) by h31.sny.collab.net with SMTP; 14 Jun 2001 20:10:02 -0000 Date: Thu, 14 Jun 2001 16:09:18 -0400 Message-Id: <200106142009.QAA03226@typhoon.pop3now.com> From: "" To: Reply-To: tomcat-user@jakarta.apache.org Cc: Subject: Re: session object X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Make sure you are still in the same session id. If the servlet and the jsp are in two different contexts then a new session is created and you loose your data. You may also need to set cross context to true but I'm not sure on that one. good luck > Sounds like a pilot error. Works fine: > > <% > session.setAttribute("request",request); > session.getAttribute("request"); > out.println("request: " + request); > %> > > Outputs: > request: org.apache.catalina.connector.HttpRequestFacade@649dcd > > ----- Original Message ----- > From: > To: > Sent: Thursday, June 14, 2001 9:05 AM > Subject: session object > > > > Hi ! > > > > I don't understand why but when I put the request object in the session : > > > > session.setAttribute("request", request); > > > > and try to retrieve it later in another jsp page : > > > > request = (HttpServletRequest) session.getAttribute("request"); > > > > I constat that my request object is egal to null > > > > WHY !!!!! > > > > > > Patrick PIERRA > >