• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts DynaActionForm setting array size dynamically

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic