• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passing parameter to DispatchAction?

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic