Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 tiles ActionClass not detected

 
anil sehgal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please reply!!!?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your project struture with file names how you defined.
 
anil sehgal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic