Adding TextBox Dynamically in Struts (USing Dyna Forms)
843838Jan 31 2006 — edited Dec 22 2008Hii Javaites
I am developing appliction in struts.
I m having a jsp page , in which i will be having a button (ADD TEXTBOXES) , and on clicking this button, i need to creat a textbox in my jps page.
I want to know how will i map the new textbox to a form bean.
i think one of the approaches can be-------
I wil create a array property in my action form of type String[] TextBox
On cliking this button i will call a javascript function , tht will submit the form , and call some action(AddTextBox). In this action i will add this textbox to the property. , and then will return back to main page.
-----
Plz tell me abt other approaches
Plz help .............