aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes To send back to the client a partial result(data) from a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "To send back to the client a partial result(data) from a Servlet" Watch "To send back to the client a partial result(data) from a Servlet" New topic
Author

To send back to the client a partial result(data) from a Servlet

Kino Lobo
Greenhorn

Joined: Feb 08, 2006
Posts: 20
Hi guys!

Is such a thing possible to do using Ajax?
To send back to the client a partial result(data) from a Servlet process?



The callback function in the request page:


exibe() is a Javascript function wich changes a div's contents on the fly.
I mean, for any loop in the Servlet I'd like to send a partial response to the browser, in opposite of having to wait till the server wind up the whole job and then return the result in a single response...
Any clue? Have someone already done something like this?
Thanks!


I'd rather trust a man who works with his hands!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

No, a response is a response whether it is the result of an Ajax call or not. If you want to partition it up, you'll need to do so by making multiple requests, each of which return a portion of the data in their own response.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To send back to the client a partial result(data) from a Servlet