I don't know of any way to do it in 1.0.2 but in 1.1 you can use Map backed or List backed form fields. Alteratively, you could use DynaBeans and put those properties in the xml descriptor. This is one good reason to upgrade.

In general, use ArrayList instead of Vector.

David



From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Vector of fields?
Date: Wed, 23 Oct 2002 09:13:22 -0400

I have a screen that the user can enter 50 products. I don't want to code
product_name1, Product_price1, product_name2, Product_price2, etc....

in my form bean. Anyway to make struts 1.0.2 would with a vector in the
form bean? or any other way to do this?



--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to