0

Problem so simple, if the action name is apply this action doesn't work at all, and it gave the

HTTP Status 404 - No result defined for action com.control.actions.ClassName and result success

Example of the struts.xml:

<action name="apply" method="display"
    class="com.control.actions.ClassName">
    <result name="none">/page.jsp</result>
</action>

but it works if the action name is anything else like:

<action name="applying" method="display"
    class="com.control.actions.ClassName">
    <result name="none">/page.jsp</result>
</action>

So is apply a kind of Struts2 keyword?

Roman C
  • 49,761
  • 33
  • 66
  • 176

1 Answers1

0

No, apply isn't a keyword.

The error message tells that no result defined is success for the action.

In most cases this means that no result is configured for the action. If you are using convention or rest plugins there may be implicit configs created using conventions.

Use the config-browser plugin to see the configuration provided to your application or debug to troubleshoot it.

Roman C
  • 49,761
  • 33
  • 66
  • 176