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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 7 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

54 views 3 4
View question

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