aspose file tools*
The moose likes Struts and the fly likes Struts2 tiles ActionClass not detected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 tiles ActionClass not detected" Watch "Struts2 tiles ActionClass not detected" New topic
Author

Struts2 tiles ActionClass not detected

anil sehgal
Greenhorn

Joined: Sep 13, 2011
Posts: 9
Hi All,

I am developing a Struts2 application with Tiles2 via eclipse and tomcat 5.5. But My application is not detecting my action class. Can any one please help?

Struts2 version: 2.1.6


following is my struts.xml file


Here is the error

Sep 15, 2011 12:31:32 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Could not find action or result
No result defined for action com.test.home.action.HomeAction and result success


Here is the action class:



But the action class is present in the source folder and returns SUCCESS as well.

Please let me know if more information is required
anil sehgal
Greenhorn

Joined: Sep 13, 2011
Posts: 9
Can anyone please reply!!!?
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Post your project struture with file names how you defined.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
anil sehgal
Greenhorn

Joined: Sep 13, 2011
Posts: 9
Thanks... I got it resolved, the only thing missing was namespace="/" in struts.xml package declaration.....

<package name="default" extends="struts-default" namespace="/">

Good Day!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts2 tiles ActionClass not detected