WARNING: No configuration found for the specified action: in namespace: Form action defaulting to 'action' attribute's literal value
In the action
attribute you should specify the action name without slashes. Like
<s:form namespace="/checkMethods" action="deleteCRUD" >
That would resolve action mappings but it will not save you from updating data.
Having multiple form
s on the page separate the input
fields by the s:form
tag.
If you want to have several buttons mapped to each own action that operate on the same data then you should create one form and several submit tags, and each tag map to the method
or action
attribute.
See this answer how to do it.
the
submit
buttons should includemethod
attribute to call corresponding methods of the action
sunleo
Enthusiastic java tech Lover!!!! திரை கடலோடியும் திரவியம் தேடு http://www.animatedrecursion.com/intro/introduction.html Reversing a nested loop http://dwite.ca/ How to config Tomcat to serve images from an external folder outside webapps? How is my id being generated with JPA using Hibernate with the Oracle 10g dialect? http://balusc.blogspot.be/2007/04/imageservlet.html
Updated on June 04, 2022Comments
-
sunleo almost 2 years
I am trying to find the namespace and action name with wildcards but it gets failed.
Exception :
WARNING: No configuration found for the specified action: '/checkMethods/executeCRUD' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
XML :
<package name="crudAction" namespace="/checkMethods" extends="struts-default" > <action name="*CRUD" class="leo.struts.HelloWorldAction" method="{1}"> <result name="success" >/crud.jsp</result> </action> </package>
JSP:
<body> Action so Far : <s:property value="message"/> <s:form action="/checkMethods/deleteCRUD" > <s:submit label="delete"/> </s:form> <s:form action="/checkMethods/selectCRUD" > <s:submit label="select"/> </s:form> <s:form action="/checkMethods/updateCRUD" > <s:submit label="update"/> </s:form> <s:form action="/checkMethods/executeCRUD" > <s:submit label="execute"/> </s:form> </body>