Hi Filip,

I know, but i want to achieve some thing like
reqeust.setAttribute(), i dont want to save the object
in session, as then i will have to put some logic to
get it out of session, or size of session will go on
increasing, and will create problem in future

Ashish
--- Filip Hanik <[EMAIL PROTECTED]> wrote:
> you are misusing the request.setAttribute, use
> session.setAttribute for what you want to achieve.
> 
> request.setAttribute is only used to store data for
> the lifespan of the request. 
> 
> Filip
> 
> -----Original Message-----
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 1:58 PM
> To: [EMAIL PROTECTED]
> Subject: is it possible to use setAttribute for
> request in jsp??
> 
> 
> Hi,
> I have to do some thing like this,
> From my jsp i want to pass some object to servlet,
> but
> do not want to use session for it
> so what i am trying is , in my jsp i have
> <form  action="/testapp/servlet/TestServlet"
> method="post">
> <%
> request.setAttribute("myObject", myObject);
> %>
> <input type="submit" value='Enter'>
> </form>
> and in my servlet i m trying to read it as
> request.getAttribute ("myObject");
> 
> But i get null, as when i submit i get, it is a new
> request and so myObject set in request is not any
> more
> valid, 
> so what are the things i can do to make it work,??
> I dont want to put it in session and pass it
> 
> Ashish
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to