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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to keep multiple data ?" Watch "how to keep multiple data ?" New topic

how to keep multiple data ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 437
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: 437
for further information, the buttons clicked are multiple pages
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 437
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..

I agree. Here's the link:
subject: how to keep multiple data ?
Similar Threads
session problem with Action
Dynamically Mapping Form Action with javascript
multiple execution in the Action class
Duplicate form submission - Synchronizer Token Pattern
Regarding maintaining hidden variables