File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Dynamic generation and removal of form elements in struts1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic generation and removal of form elements in struts1" Watch "Dynamic generation and removal of form elements in struts1" New topic
Author

Dynamic generation and removal of form elements in struts1

prakash. rajeev
Greenhorn

Joined: Feb 17, 2010
Posts: 15
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: Dynamic generation and removal of form elements in struts1