aspose file tools*
The moose likes Struts and the fly likes Struts 2 and call another method != execute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and call another method != execute" Watch "Struts 2 and call another method != execute" New topic
Author

Struts 2 and call another method != execute

Antonio Lazaro Carvalho
Greenhorn

Joined: Jul 07, 2006
Posts: 14
How can I configure my Action/url to call another method different that execute method?


SCJP 1.4(77%) Learning even..
Antonio Lazaro Carvalho
Greenhorn

Joined: Jul 07, 2006
Posts: 14
<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

Joined: Sep 05, 2012
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 and call another method != execute
 
Similar Threads
ANT call specific method
Problem in using DispatchAction
Executor
Problem in handling threading issue in servlet
Reflection on self