aspose file tools*
The moose likes Struts and the fly likes [org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error" Watch "[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error" New topic
Author

[org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Hello to all, i tried to code the following simple struts but encounter this error during run time.



index.jsp


LoginAction.java


web.xml


Besides the runtime error, there is deployment error which is


AFAIK, the scanning methodology of struts will scan the default packages named struts2 for any annotated class but i have instructed struts2 to scan in com.peter.action using init-param but still unable to find the class. It is pretty weird.

Please help.

Thanks.
Runrioter Wung
Greenhorn

Joined: Sep 03, 2011
Posts: 29
Hi,I think you should add a file named "struts.xml" in the path of "WEB-INF/classes"
peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Runrioter Wung wrote:Hi,I think you should add a file named "struts.xml" in the path of "WEB-INF/classes"


I using annotation approach rather than xml mapping approach.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [org.apache.struts2.dispatcher.Dispatcher] Could not find action or result Error