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
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("someAttribute");
> Is that correct? If so, on the jsp, in the link to
>
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
... meaning in the Action you want to reference it by doing
request.getParameter("someAttribute");
Is that correct? If so, on the jsp, in the link to your action, add that
parameter as well. Instead of just
use
.
Hope this helps,
Dhanashree.
-Original Message-
From: temp t
11 matches
Mail list logo