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 example

request.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

Reply via email to