This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts2 newbie - HTTP Status 404 - No result defined for action authentication.User and result SUCCE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 newbie - HTTP Status 404 - No result defined for action authentication.User and result SUCCE" Watch "Struts2 newbie - HTTP Status 404 - No result defined for action authentication.User and result SUCCE" New topic
Author

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

shukla raghav
Ranch Hand

Joined: Aug 03, 2008
Posts: 200
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jun 06, 2012
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 newbie - HTTP Status 404 - No result defined for action authentication.User and result SUCCE
 
Similar Threads
problem calling static method using OGNL
Struts 2 - wrong method executed
Getting the name of the requesting page
Struts2 newbee - Problem when using form tag
Jsp is not displaying in Struts2