AJAX and Struts
I'm learning AJAX in Struts. In the AJAX call back function, what kind of value
will it return? It's a whole jsp file or some specific string? Basically, I have
two form fields and when I click SAVE button, it has to be saved (without refreshing the page)
and then I have to show the values dynamically in the DIV tag. Please advise. Thanks.
[368 byte] By [
skp71a] at [2007-11-26 19:52:18]

# 2
Actually, what call back function (or object) does is, the operation/activity to handle the response for the request..
Usually in the response u should get the contents to be displayed in the jsp and a javascript handler (call back or generic function - should be included/present in the jsp) function that reads the text from the response and displays in the reqired fields/places.
One simple way is to get the (contents to be displayed) response in the html format and just set the response text as the innerHTML for the DIV tag....
Hope this helps you!