getOutputStream

PrintWriter Vs ServletOutputStream

Earlier we have seen the ways of receiving data from client. Now let us do with response. The response object functionality is to send data to client of what client is interested. For this, response uses IO Streams. There are two streams involved depending on the nature of data like…

Client to Server Example Java

Before going into the details of client-to-server communication, it is advised to go through Networking – Introduction and Communication with TCP/IP Protocol to know the terms and basics of networking and the way Java supports. This is the first application in one-way communication. In one-way communication, here, client sends to…