• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to submit a collection of form

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am wondering if there is a way to submit a collection of Struts form?

I am using
<logic:iterate name="itemList" id="item" indexId="iterateID">
<bean:write name="item" property="name"/>
<html:text name="item" property="purchaseQuantity"/>
.......
to display a list of items in the web page with input field for use to choose and put into the shopping cart.

I would like to intercept what users have enter for each item in the action class.

Would someone please tell me how?
Thanks a lot!
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one word for you...okay, actually two words..."indexed properties". There are lots of threads hear on the topic. Two good links on the topic are:

http://struts.apache.org/1.2.9/faqs/indexedprops.html
http://wiki.apache.org/struts/StrutsCatalogLazyList

- Brent
 
reply
    Bookmark Topic Watch Topic
  • New Topic