jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes GUI client talk to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "GUI client talk to servlet" Watch "GUI client talk to servlet" New topic

GUI client talk to servlet

Servin Park

Joined: May 10, 2002
Posts: 26
I am trying to build an client/server application with swing app as client and servlet as server. I need some help on how to let swing app talk to my servlet residing in somewhere like http://www.servingpark.com/myapp/servlet/ServletServer. In brief, swing app will send xml to ServletServer. Then ServletServer will process the xml and send back response xml to GUI client. I think I should send serialized xml object as request attribute and in return my servlet sends back serialized xml object back to my GUI client. But I cannot transfer this idea into actual code. I do not want to use applet as GUI client, however. Many thanks in advance for you help.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63224

Check out the java.net.URLConnection and related classes.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: GUI client talk to servlet
jQuery in Action, 3rd edition