aspose file tools*
The moose likes Struts and the fly likes Struts DynaActionForm setting array size dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts DynaActionForm setting array size dynamically" Watch "Struts DynaActionForm setting array size dynamically" New topic
Author

Struts DynaActionForm setting array size dynamically

yan yan
Greenhorn

Joined: Aug 01, 2007
Posts: 16
Hi there!

I have a question regarding DynamicActionForm. I have the ff. Stugs-config.xml

<form-bean name="appEmpHistoryForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="empHistory" type="com.rms.struts.model.ApplicantEmpHistory[]" size="1"/>
<form-property name="topSkills" type="com.rms.struts.model.ApplicantTopSkills[]" size="1"/>

</form-bean>

Initiallly, i set the size to 1. In my JSP, i have an ADD button. Upon clicking the ADD button i want the size to increase as well as the HTML objects. Is this possible? or i need to do DOM?

Need help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts DynaActionForm setting array size dynamically