top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do I send information and data back and forth between applet and servlet using the HTTP protocol?

+2 votes
402 views
How do I send information and data back and forth between applet and servlet using the HTTP protocol?
posted Oct 7, 2015 by Shyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Use the standard java.net.URL class, or “roll your own” using java.net.Socket. See the HTTP spec at W3C for more detail.

Note: The servlet cannot initiate this connection! If the servlet needs to asynchronously send a message to the applet, then you must open up a persistent socket using java.net.Socket (on the applet side), and java.net.ServerSocket and Threads (on the server side

answer Oct 8, 2015 by Karthick.c
...