Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes LookUpDispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LookUpDispatchAction" Watch "LookUpDispatchAction" New topic
Author

LookUpDispatchAction

Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
Hi All,

Can I have the same display value for two buttons on different pages which when clicked call two different methods on same action.


To illustrate

I have a one struts action class which is handling various user actions corresponding to various button clicks(I am using popular keymethod concept here).
in application resources
button.SaveA=Save
button.SaveB=Save


in key method map

button.SaveA=saveMethod
button.SaveB=saveBMethod

when I click on button B ,it called method saveMethod...
I do not want diff display value for these two buttons.
Is there a way out.



Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LookUpDispatchAction