Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing parameter to DispatchAction?

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic