File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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="/">link</html:link>

Regards,<br />Seb<br /> <br />SCJP 1.4
I agree. Here's the link:
subject: dispatch action
It's not a secret anymore!