• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error: Cannot retrieve mapping for action /Name

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I got the problem myself....

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

 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic