wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring mvc and Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring mvc and Ajax" Watch "Spring mvc and Ajax" New topic

Spring mvc and Ajax

Ram Zz

Joined: Jun 13, 2011
Posts: 1
Hello, I'm trying to learn how to use Ajax in Spring mvc reading tutorials on the web but none of them works for me.
My first application is a simple form with a username text field and a submit button. What I'm trying to do is display a <div> error message via Ajax if the username is wrong, or redirect to another jsp if the username is correct.

My code in the jsp is:

The code in the controller is:

Thanks in advance.

I agree. Here's the link: http://aspose.com/file-tools
subject: Spring mvc and Ajax
Similar Threads
How to pass data between two spring application
TOMCAT 7 - Jboss 5.1.0.GA - Spring - JSP - I need some guidance.
Spring 2.5 with Ajaxtags
Spring MVC Request Mapping
Send/receive request from jsp to a Spring portlet.