Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: Cannot retrieve mapping for action /Name

 
pradeep chellappan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am getting the following error:

Error: Cannot retrieve mapping for action /Name



Code Snippet:
----------------

index.jsp

<html:form action="Name" name="nameForm" type="example.NameForm">

struts-config.xml

<form-beans>
<form-bean name="nameForm" type="example.NameForm"></form-bean>
</form-beans>

<action path="/Name"
type="example.NameAction"
name="nameForm"
input="/index.jsp"
>
<forward name="success" path="/displayname.jsp" />
<forward name="failure" path="/index.jsp"/>

</action>
Please let me know what mistake i have commited.
 
pradeep chellappan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I got the problem myself....

i missed out to include <action-mappings>tag in struts-config.xml.

 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a a minute late in asking you the complete struts file. Its always better to post your complete struts config file for these kind of errors.By the way did your server did not thrown an error with wrong config file configurations?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic