I am building an application which takes some parameters from jsp and send these parameter to another server using socket. After getting response I have to be in continuous listen mode. How can I update the jsp with response(which comes from another server).
a.jsp –>request to b.jsp. In b.jsp it call initialise the call with another server. In b.jsp function it gets response. But how can I show on jsp page.
From the jsp, create a HttpURLConnection,and get the inputstream of the HttpURLConnection. Read the data from the inputsream and write it to the jsp writer.
You can write a custom tag to do this. Or, check if one already exists.