You cant. Not from a jsp. The request is already processed by the time you see the jsp and is no longer available. All you can do coming FROM a jsp TO an action is to use the request parameters.
This is no different than if you were going from jsp1 to jsp2 directly so it should be familiar to 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 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 > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]