Databases Reference
In-Depth Information
XWork
If you want to add an action or screen to Confluence, like a configuration screen,
there are two options. The first is building a standard Java servlet, the second is
making use of XWork/WebWork.
The module descriptor
The syntax of an XWork module is as follows
<xwork name="plugin-actions" key="plugin-actions">
<package name="configure" extends="default"
namespace="/plugins/config">
<default-interceptor-ref name="defaultStack" />
<action name="alpha"
class="com.example.action.AlphaConfigAction"
method="view">
<result name="success"type="velocity">
/templates/alpha-config-action.vm
</result>
</action>
</package>
</xwork>
Let's go quickly over the XML to explain what we just defined:
<xwork name="plugin-actions" key="plugin-actions">
defines the XWork module, both the name and key attributes are for identification only.
<package name="configure" extends="default"
namespace="/plugins/config">
 
Search WWH ::




Custom Search