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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 > > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]