aspose file tools*
The moose likes Struts and the fly likes how to keep multiple data ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to keep multiple data ?" Watch "how to keep multiple data ?" New topic
Author

how to keep multiple data ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
hi, currently stuck on keeping multiple data when user click to fire the action, below is
some template that i use to call mapping by using hidden fields

my action class template


actionflag is actually the hidden value from html page to decide what button user have click in , now my question is
if i want to know what button that user have clicked and put a message to add it into LIST during application runnning, howto
i do that ? above is my sample code , but i suffering to get accumulate elements in list ..meaning as well user have click
10 times, i should send back the list the have 10 messages to the mapping page..anyone can guide me this ?

thank you for helping
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
for further information, the buttons clicked are multiple pages
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 438
anyone have idea ?
bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
Hi nakata

Iam not sure..but i think you can check the retainAll(Object o) method of ArrayList() instead of add()... Do check and let me know..

Hope it works..

Regards
Bhuvana
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to keep multiple data ?