I'm learning to use the Convention Plugin.

I understand from the excellent notes posted on the Wiki
(http://cwiki.apache.org/WW/convention-plugin.html) that the plugin finds
the Action classes and maps those action classes to Action names and results
to specific JSPs.  For example:

Action Class                 ->          Action URL   ->   View 
com.example.actions.MainAction -> /main -> /WEB-INF/content/main-success.jsp

What I'm not clear on is what method is called in the Action Class.  Is it
always the execute method?  Is there a way in the Action URL to specify
which method to call?

I know that I could use Struts 2 @Action annotation to map a method to an
Action URL, but I'm wondering if there is a way to call a specific method in
the Action class using just the Convention plugin and no annotations.

Thanks for the help.

Bruce

-- 
View this message in context: 
http://www.nabble.com/Convention-Plugin-and-Method-Called-In-Action-Class-tp25229678p25229678.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to