Suppose I am working on a web application that has significant proprietary code, written in JavaScript/HTML/etc.
Suppose further, there exists a GPL v2 Java application that has some related functionality I'd like to offer my users, when I deploy my app to various customer sites.
So I plan to convert the Java application to a Java applet, and embed it into my web application. My web application would not be directly calling any functions of the applet, just using basic browser functionality to launch it in a particular space on a particular page.
Does this constitute "a work based on the Program" in terms of the GPL (or "linking" as used in the FAQ), such that I am now obligated to release all of my original JavaScript/HTML code under the GPL?*
If so, doesn't this mean that every HTML page that embeds a GPL'd applet must also be licensed under the GPL, with original sources provided? (Consider PHP web apps!)
Or, is embedding an applet "mere aggregation" in the sense that I'm just pointing to some related, but independent functionality?
Finally, would using Java Web Start to launch the original Java application change anything? If so, why?
(* Naturally, I will distribute sources of the Java applet itself.)