We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12379
    • 460 Posts
    Converting a static site over to Modx. Have Java applets embedded in some of the pages. Each Java page needs to be in its own directory accompanied by its Java components in order for the page to work. Just wondering how to mimic this in modx? In the example below, index.html references the mortgage.jar file but all the other files need to be present in the same directory for the applet to work.

    a.class
    b.class
    c.class
    d.class
    e.class
    f.class
    g.class
    h.class
    i.class
    index.html
    j.class
    k.class
    l.class
    license.key
    m.class
    mortgage.cab
    mortgage.class
    mortgage.jar
      Mostly harmless.
      • 10534
      • 40 Posts
      You could place the files in a directory and then create a snippet which calls a certain jar file in a certain directory.
      For example the snippet could be made dynamic, with the directory having the same names as the different jar files en then call a java jar with something like [[CallJava? &file=`filename`]].

      The snippet has to be implemented to look in dir ./filename and embed filename.jar.

      Something like that?
        • 12379
        • 460 Posts
        The actual web page calling the applet needs to be in the same directory as the .class files for the applet to work it appears, even though the web page doesn’t directly reference the .class, only the .jar.
          Mostly harmless.