RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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! -

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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

RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
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

Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
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

RE: passing object in request from jsp to action

2005-03-31 Thread Nidel, Mike
. 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

RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
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(&

Re: passing object in request from jsp to action

2005-03-31 Thread temp temp
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

RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
: 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

RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
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

Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
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

RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
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

passing object in request from jsp to action

2005-03-31 Thread temp temp
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