dcsimg

My Java applet which needs to be sent to a browser by means of a JSP page is contained within a JAR file. How can the browser download this JAR file?

John Zukowski

As specified by the <jsp:plugin> syntax page, just add an archive="foo.jar" line to the plugin statement.

You can also use the same ARCHIVE attribute in an APPLET tag, if you want to use the built-in JVM.