can any one suggest how to access a servlet through a swing application
posted 10 years ago
use URLConnection/HttpURLConnection class to connect. please find the sample code below. The key thing here is that, even if you do not get anything back from the servlet, you need to read from the input stream because of request/response paradigm.