This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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!