简体   繁体   中英

Desktop app. communicate with remote Tomcat servlet

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM