Sending data from swing to Servlet

后端 未结 2 443
不思量自难忘°
不思量自难忘° 2020-12-21 07:39

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

相关标签:
2条回答
  • 2020-12-21 08:14

    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.

    0 讨论(0)
  • 2020-12-21 08:23

    You need to use HttpUrlConnection in order to communicate using HttpRequest

    See

    • how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests
    0 讨论(0)
提交回复
热议问题