mercredi 8 juillet 2015

Send Data From Servlet To another ServerSocket

In my java project I have a Server class(using ServerSocket) and a client class(using Socket). In addition I also implemented a servlet application which is running on Tomacat 8 The servlet acts as extra input source(in other words its another client).

I'd like to send the data which is filled up from the servlet web page to the Server Socket. I already got the data from the web form using request.getParameterMap() command

I use json in order to wrap the data before sending it between Client and Server. i'd like to do the same with the servlet but I cant find the right way to do that.

Thanks!

Aucun commentaire:

Enregistrer un commentaire