File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle Ajax response in Spring MVC