Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding TextBox Dynamically in Struts (USing Dyna Forms)

843838Jan 31 2006 — edited Dec 22 2008
Hii 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 .............
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2009
Added on Jan 31 2006
25 comments
2,254 views