struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: passing object in request from jsp to action
Date Thu, 31 Mar 2005 19:25:48 GMT
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 processing are gone. 

Hubert

On Thu, 31 Mar 2005 11:21:46 -0800 (PST), temp temp
<miroconnect@yahoo.com> wrote:
> 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 <hrabago@gmail.com> wrote:
> > 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 object in session scope.
> >
> > Hubert
> >
> >
> > On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
> > <miroconnect@yahoo.com> wrote:
> > > 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
> > >

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


Mime
View raw message