title: How to create file from java applet?
body: <p>I'm trying to create an excel file and save to local file system using java applet. After sign the application, i can successfully create the file by directly invoking the applet. However, when i try to call the method from javascript, it failed without any error message. I'm wondering if there is any policy control to prevent java method to be called from javascript?</p>
  
  <pre><code> &lt;html&gt;
  &lt;script language="JavaScript"&gt;
  function createExcel()
  {
      document.excel.createExcel();
  
      document.excel.setMessage("hello world from js");
  }
  &lt;/script&gt;
  &lt;body&gt;
  &lt;input type="button" value="Generate Excel" onclick="createExcel()" /&gt;
  &lt;applet id='applet' name='excel' archive='Office.jar,poi-3.7-20101029.jar' code='com.broadridge.Office.class' width='100' height='100'&gt;&lt;/applet&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>