Sent: Thursday, March 31, 2005 1:21 PM
To: 'Struts Users Mailing List'
Subject: RE: passing object in request from jsp to action
the same... my bad I wrote request.getParameter() instead of
request.getAttribute().
:) Sorry!
-
You serialize the object sort of. At least for a hacky solution.
That is you add each attribute of it to the request. Lets say I have an
object user I wish to pass and user has firstname and lastname as
whatever.
Going to actionA:
Then in my action I can create a user object by getting all th
you.
Al
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:22 PM
To: Struts Users Mailing List; Hubert Rabago
Subject: Re: passing object in request from jsp to action
By submitting a form to the action how can I pass some
object using
When a form is submitted, data is passed as parameters, not
attributes. You can access the data using request.getParameter(), as
Dhanashree illustrated.
> > Once the JSP has been rendered, processing for that request is done.
> > Anything placed in request attributes while the JSP
> > was process
.
I don't know of any other way...
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 2:22 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: Re: passing object in request from jsp to action
>
>
> By submi
should work for you...
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 1:18 PM
> To: Struts Users Mailing List
> Subject: RE: passing object in request from jsp to
> action
>
> I want to use request.getAttribute(&
By submitting a form to the action how can I pass some
object using request.setAttribute ?could you guide me
with this.
thanks & regards
--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Once the JSP has been rendered, processing for that
> request is done.
> Anything placed in request attributes
: passing object in request from jsp to action
I want to use request.getAttribute("string",object);
thanks & regards
--- "Apte, Dhanashree (Noblestar)"
<[EMAIL PROTECTED]> wrote:
> ... meaning in the Action you want to reference it by doing
> request.getParameter
ursday, March 31, 2005 1:11 PM
> To: user@struts.apache.org
> Subject: passing object in request from jsp to
> action
>
> I want pass an object from a jsp to an struts
> action in request attribute.
>
> I have a jsp it got link to an action upon clic
Once the JSP has been rendered, processing for that request is done.
Anything placed in request attributes while the JSP was processing are
gone. To pass data from the generated HTML to an action, you need to
submit a form or include request parameters in a link. Another option
is to store the o
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:11 PM
To: user@struts.apache.org
Subject: passing object in request from jsp to action
I want pass an object from a jsp to an struts action in request attribute.
I have a jsp it got link to an action upon click the
I want pass an object from a jsp to an struts action
in request attribute.
I have a jsp it got link to an action upon click the
action is invoked. How can I pass object to this
action using request Attribute.
thanks & regards
__
Do you Yaho
12 matches
Mail list logo