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


Win a copy of Spring in Action this week in the Spring forum!
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: 439
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: 439
for further information, the buttons clicked are multiple pages
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 439
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
 
Don't get me started about those stupid light bulbs.
 
subject: how to keep multiple data ?