Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamically adding

 
sanju sreedharan
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
 
David Newton
Author
Rancher
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
Rancher
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic