JIRA 4.0 : JIRA Webwork Actions
This page last changed on Oct 09, 2008 by jeff.
Webwork Actions and actions.xmlJIRA uses the Webwork (1.x) framework to define MVC mappings. This has been superseded by Webwork 2 which is used by Confluence, Bamboo and Crowd. The best source of documentation is: http://opensymphony.com/webwork_old/src/docs/manual/ and http://wiki.opensymphony.com/display/WW1/Home The mappings are declared in the actions.xml file (src/webapp/WEB-INF/classes/actions.xml). Note the parts of the action mapping. Commands are optional, you use them when several interactions belong to the same Action. A command name is specified on the url like this: SomeAction!myCommand.jspa The command is implemented in a method in the Action class with the corresponding name: public String doMyCommand() { // implement the command logic here return "someview"; } The doExecute method is run when no command is requested i.e. the bare /path/to/MyAction.jspa.
Webwork PluginsJIRA can have Actions defined in plugins. |
![]() |
Document generated by Confluence on Oct 06, 2009 00:31 |