Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring MVC issue. 404 Error

 
vivek dhiman
Ranch Hand
Posts: 153
Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Eclipse.png
[Thumbnail for Eclipse.png]
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have marked this issue as resolved, did you figure it out?
 
vivek dhiman
Ranch Hand
Posts: 153
Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic