This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

dynamically adding

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me with example how to add dynamically by adding a add button
1)i have two field Enter the place of interview
2)enter the time of interiew

after filling that and when i press add the first entry should save in the arraylist and a same field should repeat again so that i can send the next request and so on..
please someone tell me how to do in struts as i am new in struts i dont know..

sanju
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to ask very similar questions over and over. This is a JavaScript question. You need to create the input element via JavaScript and add it to the DOM.
 
sanju sreedharan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not a javascript question..we can add dynamically using struts also...i dont want to do it in javascript i want to do in struts..why always you are telling its a javascript question...i want to do it in struts with the help of arraylist..i dont want your help..i will ask someone else..bye

sanju
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're submitting a form then you're not adding it dynamically, you're just incrementing a counter and re-rendering the entire page. That doesn't really fall under the definition of "dynamic" these days, but whatever.
 
    Bookmark Topic Watch Topic
  • New Topic