Tuesday, October 20, 2015

No configuration found for the specified action: ... action defaulting message in Sturts application


In struts we use to get the message

No configuration found for the specified action: 'fnTest()' in namespace '/'...

We use to see this message in the logs whenever we navigate from one screen to another.

The primary reason for this issue was the use of <s:form tag action attribute to call a javascript function.

One solution was to use the onSubmit attribute in the <s:form tag to call the javascript function


<s:form   method="post" onsubmit="return fnTest();"  name="searchTestScreen" id="searchTestScreen">

No comments:

Post a Comment