aspose file tools*
The moose likes Struts and the fly likes dynamically adding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dynamically adding" Watch "dynamically adding" New topic
Author

dynamically adding

sanju sreedharan
Ranch Hand

Joined: Nov 25, 2008
Posts: 48
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Nov 25, 2008
Posts: 48
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamically adding
 
Similar Threads
Edit Mask
dynmicall adding row
secure access and struts
Regarding Listener
adding textbox dynamically in struts