wood burning stoves 2.0*
The moose likes Struts and the fly likes Mapping Error when includes files in struts.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Mapping Error when includes files in struts.xml file" Watch "Mapping Error when includes files in struts.xml file" New topic
Author

Mapping Error when includes files in struts.xml file

Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

in this example , when i m use action mapping direct in struts.xml file then the example run succefulle , but when use <include ...> tag to include the mapping file, then it generate following error

Menu.jsp File


struts.xml file



action class



chapterThree.xml file



and the error is



With Regards :-
Harmeet Singh
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Jmmy,

Why you have struts.xml and chapterthree.xml...

Put the action mapping in struts.xml file then try it will work. there isnt any action define for userdetails thts what your stack trace says.

Regards
Jatan
Singh Harmeet
Ranch Hand

Joined: Aug 05, 2011
Posts: 115

yes , when adding the action mapping in struts.xml file instead of chapterThree.xml file the example work
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping Error when includes files in struts.xml file
 
Similar Threads
Form Data not being populated in Struts 2
action mapped error
Struts 2 problem -- There is no Action mapped for namespace / and action name
Interceptor is not getting called
Struts 2 JQuery Grid is not working in jsp with Integration of Strtus 2,Hibernate,Spring