Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Which vm file is the dosearchsite.action associated with?

Aviram Gabay
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.
May 31, 2014

I would like to overrid the live search functionality but I can't seem to find the vm file that renders the search page.

Im using confluence 5.5
I've tried to look in the source code and I can find the action Java file, but not the associated vm file.

And for future reference how do I find vm files that associated with actions?

Thanks!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Tim
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.
June 1, 2014
<action name="dosearchsite" class="com.atlassian.confluence.search.actions.SearchSiteAction">
            <interceptor-ref name="validatingStack"/>
            <result name="error" type="velocity">/search/searchsite.vm</result>
            <result name="input" type="velocity">/search/searchsite.vm</result>
            <result name="success" type="velocity">/search/searchsite.vm</result>
        </action>

You will find them in xwork.xml, which can be extracted from atlassian-confluence-x.x.x\confluence\WEB-INF\lib\confluence-x.x.x.jar

Aviram Gabay
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.
June 2, 2014

Thanks for the answer, this is actually what I have as well I am having a probelm, when I use an action in my plugin and pint to the same vm file I get the old version of the search page.

This is the xwork part in my xml:

<xwork name="luckysearchaction" key="luckysearchaction">
        <package name="livesearch" extends="default" >

            <default-interceptor-ref name="defaultStack" />

            <!-- dosearchsite -->
            <action name="doluckysearch"
                    class="com.wikistrat.confluence.extra.livesearch.SearchSiteAction">
                <interceptor-ref name="validatingStack" />
                <result name="error" type="velocity">/search/searchsite.vm</result>
                <result name="input" type="velocity">/search/searchsite.vm</result>
                <result name="success" type="velocity">/search/searchsite.vm</result>
                <result name="success_redirect" type="redirect">${redirectPath}</result>
            </action>
        </package>
    </xwork>

Any chance you can tell what am I doing wrong? thanks!

TAGS
AUG Leaders

Atlassian Community Events