aspose file tools*
The moose likes Struts and the fly likes dispatch action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "dispatch action" Watch "dispatch action" New topic
Author

dispatch action

smitha mano
Ranch Hand

Joined: Sep 26, 2005
Posts: 70
How to call a method in dispatchaction from to JSP
Seb Mathe
Ranch Hand

Joined: Sep 28, 2005
Posts: 225
You have to add a paramater which will define the name of the method you want to call.

The name of the paramater is defined in your struts-config.xml, (attribute "paramater" of your action's definition).

For exemple if your parameter is named "method" and if you want to call "myMethod" in "myAction", try :

<html:link page="/myAction.do?method=myMethod">link</html:link>


Regards,<br />Seb<br /> <br />SCJP 1.4
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: dispatch action