I have Swing and jsp/servlet applications.
Now I need to make intercommunication.
How to?
Can someone give me any URL where is Swing-servlet communication explained
in detail.
And is there any (free/open source) library that simplify that connection?
I was found only this http://www.innovation.ch/java/HTTPClient/ , but last
changes was in 6. May 2001!
Any newer?
Thanks.
Apache also puts out an HttpClient:
http://jakarta.apache.org/commons/httpclient/index.html
It's still in RC, but seems fairly stable.
Depending on what you're trying to do, this might be over-kill,
though. If you need to retrieve data from the servlet, just have it
post XML (instead of HTML) and parse it like this:
DocumentBuilderFactory dfactory =
DocumentBuilderFactory.newInstance();
Document doc = dfactory.newDocumentBuilder().parse("http://foo.com/servlet/myXMLServlet");
To do simple posts, you can use the HttpURLConnection class and pass
in values by creating a query string.
-Nathan
> I have Swing and jsp/servlet applications.
> Now I need to make intercommunication.
[quoted text clipped - 11 lines]
>
> Thanks.