Assuming I know what you're talking about, this is also pretty easy to address: The form is hidden, with one hidden field. It doesn't have to be hidden, certainly.
The link calls the JavaScript function, passing in the current parameter. Click The function will set the value of the form field and call submit. On 2004-Feb-25 11:02, Au-Yeung, Stella H wrote: > But each of my is within a > tag and it passes the index to the next page base on which item in the list > the user clicks. How can I do that with what you suggested? > > My current : > >   > > Thanks! > > -----Original Message----- > From: Nick Heudecker [mailto:nick@systemmobile.com] > Sent: Wednesday, February 25, 2004 10:45 AM > To: Struts Users Mailing List > Subject: Re: Can a be made to function as a 'submit' > > > > Sure, all you need is a bit of JavaScript that submits your form tag. The > 'myForm' form is representative: > >
> > >
> >
Click > > And finally, the function: > > > > That should do it. > > > > On 2004-Feb-25 10:02, Au-Yeung, Stella H wrote: > > Hi: > > Can a be made to function as a 'submit' and upon submission, > > all the formBean properties are remembered in the Action class that > > handles it. When I try to use just the I can't get the formBean > properties to > > be remembered. But I can't change my list of as submit buttons > > because I need to pass arguments on each of the . > > Here's an example of what I try to do on my JSP page: > > When the user clicks a link to see a picture of an item, this JSP will be > > replaced by another JSP with the picture. So before I leave this page, I > > "must" save the Personal information and the item list in a temporary > > location so when I return to this page, those values will be repopulated. > > But my problem is, clicking the link will not carry over he > > formBean properties to the Action class for me to save. 'Submit' will > but > > I can't change those to 'submit' because I need to pass the item > > index (0,1,2 etc.) through each to the Action class. > > > > Personal information: > > First Name: Last Name: Mailing Address: > > > > > > List of items in your shopping cart: > > ABC tennis racket 1 link to see a picture and pass the > > index of this item to the Action class > > Wilson tennis ball 5 link to see a picture and pass the > > index of this item to he Action class > > XYZ tenis shirt 2 link to see a picture > and pass > > the index of this item to he Action class > > > > I appreciate any suggestion. > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > -- > Nick Heudecker > System Mobile, Inc. > Email: nick@systemmobile.com > Web: http://www.systemmobile.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org -- Nick Heudecker System Mobile, Inc. Email: nick@systemmobile.com Web: http://www.systemmobile.com --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org