Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dispatch action

 
smitha mano
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to call a method in dispatchaction from to JSP
 
Seb Mathe
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic