Two Laptop Bag*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: LookUpDispatchAction