put the object in the request with setParameter().
the scope for this object is the request... it will be destroyed when you
call the 2nd servlet.
[]�s
Daniel A.
anil wrote:
> Hello,
>
> I do have servlet that process request and forward to another servlet.
> like.
> ->request-----> Servlet1------->servlet2
> session-obj-1 session-obj1(destroy
> session-obj1 request is done-user gets html back)
>
> At the end of sevlet2, user get html window back.
> I want setup a session object in servlet valid only for that request. I
> mean it should not valid beyond servlet2.
> if I use request.getSession(x), this session-obj1 is valid until the
> browser is closed.
>
> is there anyway to do this without calling removeAttribute() ????
>
> thanks
>
> anil