• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic