Struts arbitary textfields and DynaAction form.

Hi All,

I am developing a struts appication using Dyna Action form.

As per the requirement thetextfields in the front end JSP has to be generated dynamically.

For Example: If number of leaves=4, then 4textfieldsfor Date1,Date2 and so on. (can be done usingjavascript).)

The problem here is how do I dynamically add <form-property/>

elements instruts-config as I don't know the number oftextfieldsin advance.

I also don't know the maximum number of textfields that can be required to be created in the JSP form.

Thanks.

[619 byte] By [arunkumar504a] at [2007-11-26 16:32:14]
# 1
In the case you have described it is more appropriate to use [url http://struts.apache.org/1.3.5/userGuide/building_controller.html#map_action_form_classes] Map-backed ActionForms[/url]Cheers,evnafets
evnafetsa at 2007-7-8 22:56:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...