How can I creat a new page with web-item and xwork

Kong FanLiang October 30, 2017

I want to create a link to a new page.
I user the following code but it is no work, and the message is the page does not exist.
■atlassian-plugin.xml
<xwork key="knowwho.actions.global" name="Targeted Search Admin Actions">
<description>Actions for configuring Targeted Search criteria.</description>
<package name="targetedsearchadmin" extends="default" namespace="/plugins/targetedsearch/settings">
<default-interceptor-ref name="validatingStack"/>
<action name="configurefilters" class="knowwho.actions.search"></action>
<result name="success">/targeted-search/templates/search-configuration.vm</result>
</package>
</xwork>
<web-item key="configurefilters" name="Configure Search Filters" section="system.header/left" weight="60">
<label key="Knowledge Search"/>
<link>/plugins/targetedsearch/settings/configurefilters.action</link>
</web-item>
■search.java
do nothing but just return success
■search-configuration.vm
<html>
<body>
<h1>Kitchen Duty Plugin - Planning Page</h1>
<p>Now it looks nice :)</p>
</body>
</html>

I had try for 2 days, but It still not work. Can someone tell me how should I do?
Thank you very much.

2 answers

0 votes
Kong FanLiang October 31, 2017

@Domenico Manzo _Actonic_

It may be cause by package name. I creat the project again and add the package in the xwork. It works!

Thank you very much

0 votes
Domenico Manzo _Actonic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2017

@Kong FanLiang

atlassian-plugin.xml looks good and I think issue in something else.

Could you share all your project (pom.xml + src folder)?

Kong FanLiang October 31, 2017

It may be cause by package. I creat the project again and add the package in the xwork. It works!

Thank you very much

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events