This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GUI client talk to servlet  RSS feed

 
Servin Park
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.net.URLConnection and related classes.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!