• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic generation and removal of form elements in struts1

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic