Ignore:
Timestamp:
2018-02-13T18:46:04+13:00 (6 years ago)
Author:
ak19
Message:

Committing the first checkpoint of getting the GLIApplet to work with Java Web Start/JNLP, along with the important gli\README_WebGLI.txt with instructions. This commit uses the Java Web Start as fallback if the GLI applet can't be displayed. Some strings are hardcoded in the version of the gli\GLIApplet.jnlp file at this point.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/PageAction.java

    r32127 r32136  
    427427        gsdl3_param_elem.setAttribute("value", "true");
    428428        applet_elem.appendChild(gsdl3_param_elem);
    429        
    430         Node default_text = doc.createTextNode("GLI applet");
     429               
     430        // When an applet doesn't work in the browser, set the default display text to provide a link to the JNLP file to run with Java Web Start
     431        // The display text will be:
     432        //      Applets don't seem to work in your browser. In place of the GLI Applet, try running its alternative <a href="applet/GLIapplet.jnlp">Java Web Start (JNLP) version</a>
     433        Node default_text = doc.createTextNode("Applets don't seem to work in your browser. In place of the GLI Applet, try running its alternative ");
     434        Element link_to_jnlp = doc.createElement("a");
     435        link_to_jnlp.setAttribute("href", "applet/GLIapplet.jnlp");
     436        Node anchor_text = doc.createTextNode("Java Web Start (JNLP) version");
     437        link_to_jnlp.appendChild(anchor_text);     
    431438        applet_elem.appendChild(default_text);
     439        applet_elem.appendChild(link_to_jnlp);
    432440       
    433441        return page_response;
Note: See TracChangeset for help on using the changeset viewer.