I am looking for some code examples of a local java program that communicates with a servlet on a tomcat server.
I am trying to write a program that can send a single string to the server and be returned another string. Quite a simple thing but cannot find any tutorials or examples for communication with a remote server.
Just a simple google
http://www.frank-buss.de/echoservlet/index.html
alternatively the sun server/client example tutorial is here.
http://download.oracle.com/javase/tutorial/networking/sockets/clientServer.html