wood burning stoves*
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LookUpDispatchAction
 
Similar Threads
Adding error message to FacesContext from action method
how to access method of js from the popup
submit buttons in form
how to send 100's of textfields data to a servlet?
"two buttons, same value" problem