• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2 in eclipse 3.4

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, that's ture -- it was the location of struts.xml. Has been resolved.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic