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 need help with basic spring mvc program... please help 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 "need help with basic spring mvc program... please help" Watch "need help with basic spring mvc program... please help" New topic
Author

need help with basic spring mvc program... please help

shankhas sanyal
Ranch Hand

Joined: Jun 15, 2008
Posts: 45
hi all
i am very new to Spring MVC. I am facing a bit of a problem and cannot understand why it isn't working. that is why i have come here to share my problem with all of you. i have made a very basic login app using Spring MVC. i am trying to compare the data entered through a form with a mysql database in the back end. i know i could have done this app using spring security, since i am still learning spring mvc, i will implement security later.


web.xml


my dispatcher-servlet.xml


controller:
i have used the deprecated SimpleFormController. please advise me if this can be made better.
RegistrationController.java




my bean:

registration.java



my RegistrationService.java interface


my RegistrationServiceImpl.java


registration.jsp (mapped as registration.html)




success.jsp


my problem is that this program is running. it comes up to the login screen and when you put in the user id and password the screen stays the same. nothing is showing on the eclipse console. when i make a warfile and deploy it on tomcat, i get the following log file after inputting data.



what am i doing wrong? please help. any kind of help will be highly appreciated.


I love this place!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: need help with basic spring mvc program... please help
 
Similar Threads
Not Getting Values using EL in Spring..
HandleRequestInternal is not called in spring
Spring
SwitchAction Query
Spring MVC Hello world application error