Fix WinVNC so that it embeds and serves up the Java viewer whenever BUILD_JAVA=1


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4704 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/winvnc/index.vnc b/win/winvnc/index.vnc
index aecb613..428d4bc 100644
--- a/win/winvnc/index.vnc
+++ b/win/winvnc/index.vnc
@@ -1,13 +1,20 @@
+<!-- 
+     index.vnc - default HTML page for TigerVNC Java viewer applet, to be
+     used with WinVNC. On any file ending in .vnc, the HTTP server embedded in
+     WinVNC will substitute the following variables when preceded by a dollar:
+     USER, DESKTOP, APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT,
+     Use two dollar signs ($$) to get a dollar sign in the generated
+     HTML page.
+-->
+
 <HTML>
-<HEAD>
 <TITLE>
-VNC viewer for Java
+$USER's $DESKTOP desktop
 </TITLE>
-</HEAD>
-<BODY>
-<APPLET CODE=vncviewer/VNCViewer.class ARCHIVE=vncviewer.jar
-        WIDTH=400 HEIGHT=250>
-<PARAM name="port" value="$PORT">
+<APPLET CODE=com.tigervnc.vncviewer.VncViewer ARCHIVE=VncViewer.jar
+        WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT>
+<param name=PORT value=$PORT>
 </APPLET>
-</BODY>
+<BR>
+<A href="http://www.tigervnc.org/">TigerVNC site</A>
 </HTML>