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 How to handle Ajax response in Spring MVC 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 "How to handle Ajax response in Spring MVC" Watch "How to handle Ajax response in Spring MVC" New topic
Author

How to handle Ajax response in Spring MVC

M Manjunath
Greenhorn

Joined: Oct 27, 2009
Posts: 3
Hi ,
I wanna use Ajax in Spring MVC...
Can anyone please help me out on the same
..
Thanks in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's a pretty open-ended question. What, exactly, do you want to do? What problems are you encountering? What are you using on the client side?
M Manjunath
Greenhorn

Joined: Oct 27, 2009
Posts: 3
From JSP page I am making an ajax request to the spring controller and I am trying to print something, like System.out.println("Hello from spring controller"); but am not getting this output in the ajax response object. Is there any other way to send response from spring? Please help..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

...

The response still needs to be returned to the caller; s.o.p just prints to the console. The response can be built using any of the standard Spring/web mechanisms. How that response is handled is up to your calling code.
 
Consider Paul's rocket mass heater.
 
subject: How to handle Ajax response in Spring MVC
 
Similar Threads
Ajax with Spring MVC
struts2 Vs spring mvc
What new features are there in Spring 3 for integration with Ajax frameworks?
can we use google ajax api to get states from database table
Ajax with Spring MVC