Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic generation and removal of form elements in struts1

 
prakash. rajeev
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add and remove dynamically form elements like textboxes and text areas, in a webpage using struts1.
Suppose i am using a table and that table has five columns which contains three text boxes and two text areas.
I want to generate the rows dynamically for that table and also should be able to remove it dynamically.
For every row it's columns element's property should be different . I want to design this webpage in optimized manner., means i don't need too much coding for generating this type of web page.


I want to do this using struts1,


Any help would be highly appreciable.
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prakash. rajeev wrote:
I want to add and remove dynamically form elements like textboxes and text areas, in a webpage


You have to use JavaScript and DHTML to do that part.

prakash. rajeev wrote:
I want to do this using struts1,


Indexed Properties is how you'd hook up your dynamic form with Struts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic