File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic generation and removal of form elements in struts1

 
prakash. rajeev
Greenhorn
Posts: 15
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic