What do I put in the link tag of the web-item module such that when I click on the web-item, the action java class will be executed to generate the soy template?
Below are my code:
<web-item name="comparator-plugin-action-web-ui" key="comparator-plugin-action-web-ui" section="system.content.action/primary" weight="10">
<description key="item.comparator-plugin-action-web-ui.link.desc">Compare 2 versions of a page</description>
<label key="Comparator Plugin"/>
<link></link>
</web-item>
<xwork name="comparator-plugin-action-xwork" key="comparator-plugin-action-xwork">
<description key="item.comparator-plugin-action-xwork.link.desc">Defines what the Comparator Plugin action does.</description>
<package name="comparator-plugin" extends="default" namespace="/plugins/comparator-plugin">
<default-interceptor-ref name="defaultStack"/>
<action name="comparator-plugin" class="com.example.plugin.ComparatorPluginAction">
<result name="success" type="soy">/Soy/mySoyTemplate.soy</result>
</action>
</package>
</xwork>
The action class just extends ConfluenceActionSupport and only has 1 method Execute() which returns “success”