struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <>
Subject Re: Generating dynamic DynaValidatorActionForm elements and form pages?
Date Mon, 21 Mar 2005 13:59:21 GMT
You can search the archives using the sites I mentioned in

For dynamic form elements, take a look at the LazyValidatorForm
.  Aside from the javadoc, add'l info on that can be found in Niall's
site at


On Sun, 20 Mar 2005 17:52:27 -0500, Dave Newton <> wrote:
> Hi,
> I have coded and programmed myself into a corner. Gotta hate that.
> I don't seem to be able to get to the archives at the moment, either.
> In a nutshell the problem is this:
> A certain form has a wad of known elements. Based on J. Random Criteria
> I need to be able to dynamically add elements to that form on both the
> back-end and front-end. So really I need to be able to add elements to a
> DynaValidatorActionForm (which is what all my forms are, declared in
> struts-config.xml) _AND_ add the "appropriate" elements on the JSP page.
> So, say I had a form with a first name, last name, and email. Sometimes
> I'd need/want the same page to have, say, a FormFile upload element in
> the form def. and in the JSP. Other times I might want a different
> FormFile upload element and an additional text input, like a URL.
> Any thoughts, or am I living in a dream world? It kinda feels like it at
> this point, especially considering my deadline (and it's Sunday night...
> niiiiiiice...)
> It seems like this should be doable assuming I have the ability to
> process the form fields dynamically (I had planned on associating a
> class name with the various "types" of additional fields I'd want to add
> and using an instance of that class instantiated on a form post to
> process the dynamic form fields)... But after pondering for a little bit
> I'm less sure of myself.
> *sigh*
> Any help GREATLY appreciated!
> Thanks,
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message