wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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..

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