This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts 2 and call another method != execute
 
Similar Threads
Problem in handling threading issue in servlet
Executor
Problem in using DispatchAction
Reflection on self
ANT call specific method