How to send data (form data) from a Swing to the servlet. Is it as simple as specifying in action attribute as in html(form)?
I am passing data to Servlet using this
It works just the same as Java Applets, you can find more information here: http://www.coderanch.com/how-to/java/AppletsFaq#servlet
I'd highly reccommend BalusC's introduction to Servlet's and DAO's here as well.
You need to use HttpUrlConnection in order to communicate using HttpRequest
See