This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
how to access method of js from the popup
submit buttons in form
how to send 100's of textfields data to a servlet?
Adding error message to FacesContext from action method
"two buttons, same value" problem