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 Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

299 views 0 6
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