aspose file tools*
The moose likes JSF and the fly likes Setting response in body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Setting response in body " Watch "Setting response in body " New topic
Author

Setting response in body

Vibhas Kumar
Greenhorn

Joined: Oct 13, 2009
Posts: 28
Hi All,

I need one help in my current development one of the requirement says:

The server will return 200-OK as a response(httpresponse).

If the panelist is verified then as a result,
the server must also return the panelist id of this panelist.

The server will place the panelist id inside the body of the 200-OK response in the following way:





Now what I can able to do is I can put the httpresponse as

httpServletResponse.setStatus(HttpServletResponse.SC_OK);

And I can put String responseToClient= "<tdcp><cmd><ack cmd=”Init”><panelistid>3849303</panelistid></ack></cmd></tdcp>";

Now what does putting the above xml inside the body of 200-OK response mean??
and how it can be achieved.

Please help me thanks in advance


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting response in body