Sending data from swing to Servlet

后端 未结 2 445
不思量自难忘°
不思量自难忘° 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: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

提交回复
热议问题