Rupesh Choubey wrote:
sendRedirect would cause the browser to make a new request which would mean the information is lost and cannot be obtained from the JSP.....does this make sense?thank you for your response....
rupesh.-----Original Message-----
From: Mike Engelhart [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 08, 1999 5:06 PM
To: [EMAIL PROTECTED]
Subject: Re: difference between request.setParameter and
session.putValue?????It think you're comparing apples and oranges. Sessions and requests are not
the same thing. They are different objects with different functionality.
There is no way for you to write, in a servlet for examplerequest.setParameter("name", value);
and then in a JSP write this
session.getValue("name");
That will not work. You can use session objects to pass data to a page but
you must specifically remove/invalidate it or else it will stay around for
the lifetime of the session.
Mike
----------
>From: Rupesh Choubey <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: difference between request.setParameter and session.putValue?????
>Date: Fri, Oct 8, 1999, 3:55 PM
>>
> hi,
>
> i know you can make a value persist for the request lifetime using two ways:
>
> 1. request.setParameter("name", value);
>
> 2. session.putValue("name", value);
> and in the jsp say: <jsp: useBean name=......scope = "request"....>
>
> what is the difference between the two approaches if the object is going to
> be around only for the lifetime of the request?? am i missing something?
>
> thanks for your help,
> rupesh.===========================================================================
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
--
from
john anderson
(mailto:[EMAIL PROTECTED])
____________________________________________________________________________________
matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)
phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673
visit our site at
http://www.mataimarketing.co.nz
____________________________________________________________________________________
