How to start a server process from a Java applet?

Now I am doing this:

In my applet, I connect to the URL of the CGI script that starts the server process.

Is there a better way? How would you do that?

Thank!

+3
source share
2 answers

Using a simple HTTP call (as I assume you did) is the best way to do this.

There are other network protocols, but there is a risk that they may be blocked for security reasons.

+1
source

If that's all the applet does, then you can do the same thing easier with a little Javascript embedded in the web page ... or perhaps with simple HTML <form>and <button>in the web page.

, , , Java-.

0

All Articles