Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 in eclipse 3.4

 
Michael Lee Jordan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new To eclipse and struts2

I tried to run the simple application "hello world" with struts in Eclipse. The server is Tomcat6. However, keep getting this error

SEVERE: Could not find action or result
There is no Action mapped for namespace / and action name HelloWorld.

Seems like there is a mapping problem -- just could not figure out what. seems like some other people have run into similar ones,but could not find the fix so far. How should struts2 be used within Eclipse? Eclipse has been said to be very good -- but since I started to use it, I found a lot of frustrations.

Any advice? opinion? redirecting to the right source?

Thanks very much

MLJ
 
Jair Rillo Junior
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Certainly the problem is in the mapping file (struts.xml). Do not blame eclipse for that issue.

I really advice you to check again the web.xml, struts.xml and which JARs files are in your classpath (WEB-INF/lib) folder.

Although Struts 2 documentation is not clear enough, I advice you to check out other documentation resource in the internet, like this one: http://www.roseindia.net/struts/struts2/index.shtml.
 
Michael Lee Jordan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, that's ture -- it was the location of struts.xml. Has been resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic