• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 newbie - HTTP Status 404 - No result defined for action authentication.User and result SUCCE

 
shukla raghav
Ranch Hand
Posts: 203
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my first test application :-

index.jsp


Action Class: User.java



Result jsp for "success" : osrwelcome.jsp



struts.xml



but i am getting following error from struts

HTTP Status 404 - No result defined for action authentication.User and result SUCCESS

--------------------------------------------------------------------------------

type Status report

message No result defined for action authentication.User and result SUCCESS

description The requested resource (No result defined for action authentication.User and result SUCCESS) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.13


what is the problem ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that you don't have a result named "SUCCESS", just like the error message says: the default result name is "success". Instead of just using the Struts 2 Action.SUCCESS value (which is "success") you're using a user-defined value that isn't reflected in your configuration file.
 
san mani
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude simply change the result page location.
create a folder with name content in web-inf directory and place all your result pages in that location and run the server that must do
in struts 2 it looks for a folder with name content in web inf.
Hope this helps

Regards
Sanmani
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic