-----Original Message-----
From: Paul Holser
Sent: Tuesday, January 18, 2000 11:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: losing session data using URLrewriting


> -----Original Message-----
> From: James Skehan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 18, 2000 8:44 AM
> To: [EMAIL PROTECTED]
> Subject: losing session data using URLrewriting
>
>
> My basic architecture is as follows:
>
> servlet -> jsp -> servlet -> jsp
>
> In the first servlet, I create a session and place data in
> it. This data is visible in the following jsp page (I
> sendRedirect(encodeRedirectURL("blah")) to it) but not to the
> servlet that this jsp page invokes via a form submission.
> The session data is null. I'm using IIS with ServletExec 2.2 and
> I'm employing URLrewriting in the case that cookies in the
> client browser are not supported. My question is why is this
> session data null? If cookies are supported at the client,
> this works fine and no session data is lost!

are you encoding the URLs in the JSP itself that take you back
to servlet #2?  if not, you won't see data from the session
you previously established.  make sure your form looks
something like:

<FORM METHOD=POST
 ACTION=<%= response.encodeRedirectUrl( "/url/of/servlet/number/2" ) %> >

hth,
p

--
// Paul Holser -- mailto:[EMAIL PROTECTED]
// ObjectSpace, Inc. -- http://www.objectspace.com
// 14850 Quorum Dr. Ste. 500, Dallas TX 75240 USA
// 972.726.4560 -- 1.800.OBJECT1 x4560

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to