For those that care, I wrote an XDoclet Template to produce an actions.xml file.
In your build file:
<webworkconfigproperties
destdir="${classes}"
templateFile="${xdoclet.merge.dir}/webwork_actions.xdt"
destinationFile="actions.xml"
/>
It operates on the following tags.
Class Tag: @webwork.action
Params: name, success, input, error
Method Tag: @webwork.command
Params: name, success, input, error
Comment: If name is not specified it takes a method called "doSave" and
makes the name "save"
Class AND/OR Method Tag: @webwork.view
Params: name, value
Examples:
Class Tag:
/**
* @webwork.action
* name="document"
* error="/error.jsp"
* @webwork.view name="test" value="one.jsp"
* @webwork.view name="test2" value="two.jsp"
*/
Method tag:
/**
* @webwork.command
* success="/document/documentViewer.jsp"
* @webwork.view name="foo" value="one.jsp"
* @webwork.view name="bar" value="two.jsp"
*/
Produces the following actions.xml:
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action name="xxx.action.DocumentAction" alias="document">
<view name="error">/error.jsp</view>
<view name="test">one.jsp</view>
<view name="test2">two.jsp</view>
<command name="save" alias="document!save">
<view name="success">/document/documentViewer.jsp</view>
<view name="foo">one.jsp</view>
<view name="bar">two.jsp</view>
</command>
</action>
</actions>
Not sure if there is a better place to send this. Hopefully it will help
someone.
Thanks,
Frank
webwork_actions.xdt
Description: Binary data
