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..
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.