Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2003

Tip: Looking for answers? Try searching our database.

Swing-servlet communication?

Thread view: 
NDerTfr - 08 Sep 2003 06:00 GMT
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.
Nathan Zumwalt - 08 Sep 2003 14:53 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.