Here are the sample two xmls.
email.xml:
<action name="mailSelect" class="com.my.EmailAction">
<result name="success">mailSelect.jsp</result>
</action>
I want to use the same method call defined in email.xml in another xml.
another.xml:
<action name="mailSelect" class="com.my.EmailAction">
<result name="success">/email/mailSelect.jsp</result>
</action>
When I tried to call, the action being called is http://localhost:8080/test/web/another/mailSelect
instead of the correct http://localhost:8080/test/web/email/mailSelect
.
Any way to reuse the same method in another xml?