aspose file tools*
The moose likes Struts and the fly likes Passing parameter to DispatchAction? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Passing parameter to DispatchAction?" Watch "Passing parameter to DispatchAction?" New topic
Author

Passing parameter to DispatchAction?

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
I want to forward to a DispatchAction , but I dont know how to pass the name of the method to execute inside the DipatchAction.
I do something like
mapping.findForward("continue");
but how would I set it to .....continue.do?method=insert

'method' is the parameter name of the DispatchAction that must have the method name of the DispatchAction to execute
Thank you all
Srikanth Shenoy
author
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
Hi John,
While I dont want to bore you with explanation of the DispatchAction, I suggest that you look at explanation for DispatchAction in the following sample: All About Actions
If you still have questions after reading the article, I am happy to answer any of them.
Srikanth
Author: Struts Survival Guide - Basics to Best Practices


Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Passing parameter to DispatchAction?