Calling a Servlet through a Swing using java.net.URLConnection
Hii JavaitesI need to call a servlet from a Swing application.I want to pass a xml from Swing to servlet.Plz tell me how to go abt it.
You've answered your own question in the title. Create a URL to your servlet, get a connection from it, write what you have to write and read the response. It's all there in the API.And don't do any of this in the AWT thread or your GUI will freeze.
ejpa at 2007-7-13 23:13:41 >
