I'm trying to send an object from server to client.
client side:
HttpResponse response = client.execute(request);
server side:
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
{
PrintWriter out = response.getWriter();
out.print(new Object());
}
How do I get the object from the response?
Do i need to use instead:
OutputStream out = response.getOutputStream();
if so which way is more efficient?
example code please :)
thanks.