Sep 25th, 2006, 08:15 PM
varying form parameters?
Is there some way I can automatically handle a varying number of POST parameters? I'm looking at shopsite.com, an online shopping site, and they send you multiple parameters depending on how many items are in the user's cart. E.g., if they have 3 items in their cart you'd get the parameters B01-Name, B01-Price, B02-Name, B02-Price, B03-Name, and B03-Price. I'm thinking that what I'd like to get is an array list of hashes, or an array list of beans.
Can I do this with, for example, the ServletRequestDataBinder?