|
From: Geoffrey De S. (JIRA) <no...@at...> - 2006-12-21 17:09:43
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-285?page=comments#action_21398 ] Geoffrey De Smet commented on RCP-285: -------------------------------------- Here's that javascript, now just take a look at the docs of the maven-webstart-plugin <!-- Detect if java webstart is available --> <script type="text/javascript"> function isInternetExplorerJavaEnabled() { try { // Detect Java 5 platform var obj = new ActiveXObject('JavaWebStart.isInstalled.1.5.0.0'); if (obj != null) { return 1; } } catch (exception) { // do nothing } try { // Detect Java 5 platform var obj = new ActiveXObject('JavaWebStart.isInstalled.1.6.0.0'); if (obj != null) { return 1; } } catch (exception) { // do nothing } return 0; } function isFirefoxJavaEnabled() { for (var i = 0; i < navigator.mimeTypes.length; i++) { var s = navigator.mimeTypes[i].type; // Detect Java 5 platform if (s == 'application/x-java-applet;version=1.5' || s == 'application/x-java-applet;version=1.6') { return 1; } } return 0; } if (!isInternetExplorerJavaEnabled() && !isFirefoxJavaEnabled()) { document.write('<p class="error">' + 'Er is geen upgedate versie van de Java JRE aanwezig op uw systeem. ' + 'Voor u Triton kan starten, moet u eerst de Java JRE installeren' + ' en dan uw browser herstarten.' + '</p>'); document.write('<a class="error" href="http://java.com/getjava" target="_blank">' + 'Klik hier om de recentste Java JRE te installeren.' + '</a>'); } </script> > Petclinic: (Re)Enable webstart + standalone webstart on site demo > ----------------------------------------------------------------- > > Key: RCP-285 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-285 > Project: Spring Framework Rich Client Project > Type: New Feature > Components: Build System > Reporter: Geoffrey De Smet > Assignee: Geoffrey De Smet > Fix For: 0.3.0 > > Enable webstart for petlinic: > - client webstart included in server > - standalone webstart included in maven site as demo "WEB START ME NOW" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |