Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts2 Newbie - HTTP Status 404 - No result defined for action

 
Ranch Hand
Posts: 222
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to build an app that (to begin with) the user simply clicks a hyperlink (HelloAction) and is directed to hello.jsp (using Struts 2 action mapping). I'm getting an HTTP 404 error - HTTP Status 404 - No result defined for action com.manaar.action.HelloAction and result success


My files are as follows. Any advice is much appreciated! Many thanks,

index.jsp


hello.jsp


HelloAction.java

struts.xml

 
Jay Tai
Ranch Hand
Posts: 222
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It turns out the RESULT parameter was not being passed to struts.xml therefore using the following annotations in the classs file solved my problem:

 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic