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

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

@Kong FanLiang

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

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

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

Thank you very much

@Domenico Manzo

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

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,225 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot