This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring MVC issue. 404 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC issue. 404 Error " Watch "Spring MVC issue. 404 Error " New topic
Author

Spring MVC issue. 404 Error

vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Hi I have Simple spring MVC Example & trying to execute, but not working. Please help & advice where i am wrong. I am posting my code as below.

Login Form :

Web.xml

dispatcher-servlet.xml

Controller Class.

I have two more java files
1) Login.java(Gettar,Settar for name & pass fields).
2) LoginProcess(To validate the user)

Attached is the directory structure for the same. Login Form display fine & after submit this form it show 404 error for (/SpringLoginMVC/validUser.jsp). There is no error message on console. Also i observe controller not invoked as ======controller====== message not shows in console.

Thanks.


[Thumbnail for Eclipse.png]

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

You have marked this issue as resolved, did you figure it out?


[How To Ask Questions][Read before you PM me]
vivek dhiman
Ranch Hand

Joined: Aug 05, 2011
Posts: 111

Yes this has been sorted out. There was mapping mistake. There had to be validUser.html. Its working now. But for same if i use spring form tag it again giving problem as per below link.

http://www.coderanch.com/t/606896/Spring/BindingResult-plain-target-object-bean
 
Consider Paul's rocket mass heater.
 
subject: Spring MVC issue. 404 Error
 
Similar Threads
Spring annotation no handler found
No mapping found for HTTP request with URI - Why erreur404
How to invoke method using controller class in spring
Problem running app under Tomcat v7
Spring MultiActionController is not working