Solved : No configuration found for the specified action

Solved : No configuration found for the specified action 


Issue: Warning : No configuration found for the specified action on struts 2 action call..


Fix : Check your struts.xml and action mapping and map it with your jsp form submission
for example,

Action mapping 
<action name="login" method="login"
class="com.tcs.ecmui.action.CredentialWatcher">
<result name="success" type="redirect">getAllPages</result>
<result name="error">/resources/jsp/login.jsp</result>
</action>
..
.. 
<package name="readNode" extends="struts-default,json-default" namespace="/">
</package>


Jsp

<s:form action="login" method="POST">
<s:textfield name="user" label="User" />
<br>
<s:password name="password


Problematic Code :

<s:form action="/login" method="POST">
<s:textfield name="user" label="User" />
<br>
<s:password

or

<s:form action="/login.action" method="POST">
<s:textfield name="user" label="User" />
<br>
<s:password

Share this

Related Posts

Previous
Next Post »