Jim Kennedy wrote:
I figured this one out. Man, what a landmine. BTW, good suggestions from
all of you.
Here's what I did:
In my struts config I named the form property "cart". See below
type="org.apache.struts.validator.DynaValidatorForm">
type="com.je.common.ShoppingCartItem[]"/>
May 27, 2004 12:23 AM
To: Struts Users Mailing List
Subject: Re: Dynamically sized form using dynavalidator
... and also, you're probably going to need to look into populating an empty
array or List called from your reset method. Pain in the butt, but there is
a lot in the archives about
... and also, you're probably going to need to look into populating an
empty array or List called from your reset method. Pain in the butt, but
there is a lot in the archives about ways to handle it. For testing
puprposes to start with just give the form session scope which will
avoid the probl
I haven't tested this and it's late.. but your form property is "cart"
not item.. so if you are going to use JSTL (and not the nested tag which
is actually easier) it would be something like...
Using the nested tag it would be:
Jim Kennedy wrote:
Just to clarify som
Just to clarify something. My expectation is that I can generate a form
that can grow (row-wise) at runtime and change/modify values in that form.
The processing action could then retrieve the dynaform and the changed
values would be saved back to whatever (array, collection list...)
-Orig
5 matches
Mail list logo