Servlets and Applets

Hi

I have an applet that connects to a RS232 device. After i get the required info from the device, i would like to send that info back to the servlet.

I'm reading up on URL class and URLConnection class, am i heading in the right direction, or am i barking up the wrong tree?

Any other methods of communicating between an applet and a servlet are welcomed.

thank you

:)

[408 byte] By [monk3ya] at [2007-11-27 8:50:54]
# 1
Using HTTP (i.e., what you seem to be doing) is almost always the easiest and more straightforward way to make applets talk to servlets. So that should be fine.
paulcwa at 2007-7-12 21:03:07 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks for the reply paulcw, :)Now i have to go read exactly how i will accomplish this, using the HTTPConnection class and sorts:)
monk3ya at 2007-7-12 21:03:07 > top of Java-index,Desktop,Core GUI APIs...
# 3

It's pretty straightforward. Keep in mind that the applet doesn't need to know that a servlet is handling the request on the server side (for example, for all the applet knows, the server-side functionality is handled via CGI) and the servlet doesn't know that the request is coming from an applet (for all it knows, it could be coming from a browser or a spider program, or whatever).

Just follow basic HTTP (which is well-documented) and it should be simple. Time-consuming, probably, but simple.

paulcwa at 2007-7-12 21:03:08 > top of Java-index,Desktop,Core GUI APIs...