File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mapping Error when includes files in struts.xml file

 
Singh Harmeet
Ranch Hand
Posts: 115
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
jatan bhavsar
Ranch Hand
Posts: 297
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 115
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes , when adding the action mapping in struts.xml file instead of chapterThree.xml file the example work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic