You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arpan Debroy <ar...@gmail.com> on 2008/03/05 08:24:05 UTC

how to pass object through request parameter

Hi,

Instead of sending string name and values, I want to send the whole object,
which comprises of  some fields, from one jsp to another one.
I am using struts2.
Can anyone tell me if it's possible to pass an object rather than strings
through request object.

Thanks

Re: how to pass object through request parameter

Posted by Arpan Debroy <ar...@gmail.com>.
Thanks Nils..

On Wed, Mar 5, 2008 at 1:13 PM, Nils-Helge Garli Hegvik <ni...@gmail.com>
wrote:

> You can store objects as request attributes, which lives as long as
> the request. If you need an object to live between requests, use the
> session.
>
> Nils-H
>
> On Wed, Mar 5, 2008 at 8:24 AM, Arpan Debroy <ar...@gmail.com>
> wrote:
> > Hi,
> >
> >  Instead of sending string name and values, I want to send the whole
> object,
> >  which comprises of  some fields, from one jsp to another one.
> >  I am using struts2.
> >  Can anyone tell me if it's possible to pass an object rather than
> strings
> >  through request object.
> >
> >  Thanks
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Thanks & Regards
 Arpan Debroy

AOL Online India Private Ltd
RMZ EcoSpace Campus 1A
Outer Ring Road, Bellandur,
Bangalore - 560037
India
Mobile No :+9886006306
on-board :+91 (80) 4035 4528
E-mail : arpan.debroy@corp.aol.com

Re: how to pass object through request parameter

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
You can store objects as request attributes, which lives as long as
the request. If you need an object to live between requests, use the
session.

Nils-H

On Wed, Mar 5, 2008 at 8:24 AM, Arpan Debroy <ar...@gmail.com> wrote:
> Hi,
>
>  Instead of sending string name and values, I want to send the whole object,
>  which comprises of  some fields, from one jsp to another one.
>  I am using struts2.
>  Can anyone tell me if it's possible to pass an object rather than strings
>  through request object.
>
>  Thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org