• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 Annotations example giving HTTP 404 error

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Using Struts2 with annotations, I have set up a very simplistic webapp which starts up and I can manually go directly to a JSP (so I know it's working in a basic form)

But when I create a simple Struts2 Action using annotations like the one below

And go to the URLs:


I get the following error:



But if I just go to a URL like


It works (finds the page).

Could anyone explain this?

Ref: http://www.mkyong.com/struts2/struts-2-hello-world-annotation-example/
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!