ManiKanta G wrote:
Thanks Laurie,

If all you need to return is a number or true/false, simply write that to
the response in your action method and return null

what do you mean writing to response? You mean using response.xxx methods?
or some thing else?

More or less, yes: write your response data directly to the response output stream, as in response.getOutputStream.write(...).

The bottom line is that, once you understand what it is you want to return
(a number, a boolean, a JSON data structure, etc.) the means by which you
generate that response are up to you. Understand what the response ought to
look like first, *then* worry about what your options are for generating it.

well I want to return the number of records got updated successfully and/or
the number of records failed to update. And please tell me what if I want to
get these two values same time. I think for this JSON is the way. If yes,
can you point out some resource to head. correct me if I m wrong.

As I said, the JSON plugin would be a good starting point.

  http://cwiki.apache.org/S2PLUGINS/json-plugin.html

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to