• 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
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

unable to process login application in struts2

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I am getting following exception while processing my login application.

HTTP Status 404 - No result defined for action fms.ngo.action.LoginAction and result success

login.jsp:


LoginAction.java:



struts.xml:

 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I added Code Tags to your post. They preserver your formatting and make your code easier to read.
I don't see anything obviously wrong with your code. Are you certain the version you posted is the version that is running on your server?
By the way, don' t do this:

It breaks the MVC model of the application and will not work if you use Struts tags in your page. All URL's in a Struts application should go to an action. Struts can send a request directly to a JSP if you don't want to use an action class.
 
Uppala srikanth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi joe,

actually i am new to struts2. i am following some online tutorials and doing this work is anything wrong with that version?
and also thank you for your valuable suggestions joe.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you building and deploying the application?
What tutorial are you following?
 
Uppala srikanth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am following this tutorial

tutorialspoint
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see any code in that tutorial that resembles the code above. Have you made your own modifications?
Are you rebuilding the application and redeploying the WAR to Eclipse every time you make changes and go to test?
Are there any errors in the Tomcat log?
 
Uppala srikanth
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

no errors in the tomcat logs. I made changes according to my requirement. The code is available in the following tutorial
javapoint
 
reply
    Bookmark Topic Watch Topic
  • New Topic