• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

help needed| Generating struts tag using java script

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a jsp on which I have two text boxes(txtfield1,txtfield2) along with an Add Button. When I click on Add button, I need to add a new section in the same page as that with the same fields. It is possible through jquery/java script with normal HTML code but I need to do this to generate struts tag fields.

It will be greatly greatly appreciated if anyone can tell me how can i do this( i have the javascript code to generate the html code but its not working for struts tags)+ I want to know how do I map this in my formbean.

Regards,
Poornima
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For S1:

poornima balagopal wrote: I have a jsp on which I have two text boxes(txtfield1,txtfield2) along with an Add Button. When I click on Add button, I need to add a new section in the same page as that with the same fields. It is possible through jquery/java script with normal HTML code but I need to do this to generate struts tag fields.


If the Struts tag are HTML Struts tag, then ofcourse you can, because the Struts HTML tags are finally gets rendered into the core HTML tags. e.g
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic