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

Struts 2 and call another method != execute

 
Antonio Lazaro Carvalho
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I configure my Action/url to call another method different that execute method?
 
Antonio Lazaro Carvalho
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<package name="default" extends="struts-defaults">

<action name="cadastroMapas"
class=" br.ucsal.projeto.view.actions.CadastroMapasAction">
</action>

<action name="preencherCurso"
class=" br.ucsal.projeto.view.actions.CadastroMapasAction"
method="preencherCurso">
</action>

</package>
 
vijay satlawar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an attribute called 'method' for action tag where we have to specify method to be called.
<action="" class="" method="">

</action>

that method should return string parmerter in Action.

Vijay Satlawar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic