Wednesday, March 2, 2011

<%-- // to set the Last_Modified header so that the JNLP client will know whether to download // the JNLP file again and update the cached copy. String jspPath = application.getRealPath(request.getServletPath()); java.io.File jspFile = new java.io.File(jspPath); long lastModified = jspFile.lastModified();%><% // locally declared variables String url=request.getRequestURL().toString(); String jnlpCodeBase=url.substring(0,url.lastIndexOf('/')); String jnlpRefURL=url.substring(url.lastIndexOf('/')+1,url.length()); // Need to set a JNLP mime type - if WebStart is installed on the client, // this header will induce the browser to drive the WebStart Client response.setContentType("application/x-java-jnlp-file"); 1 response.setHeader("Cache-Control", null); response.setHeader("Set-Cookie", null); response.setHeader("Vary", null); response.setDateHeader("Last-Modified", lastModified); // An installer must reply with the version number for a given install if (response.containsHeader("x-java-jnlp-version-id")) response.setHeader("x-java-jnlp-version-id", "WASClient6.1.0"); 2 else response.addHeader("x-java-jnlp-version-id", "WASClient6.1.0");%> Application Client Java Runtime Environment IBM Application Client Java Runtime Environment Application Client JRE Application Client JRE <%-- The installer can use any 1.4 JRE --%> 3 4 5 6 7