From: Andreas <sar...@ho...> - 2008-04-06 21:17:04
|
Hello everyone! I am struggling long now with a problem i can't resolve, so i kindly ask for your help. I am using Java Server Faces, constructing a web application. I am trying to run Jmol (I have tried both as simple applet and with Jmol.js) and load a dynamic value-path to the user's folder and file. My code is: <jsp:plugin archive="Jmol/JmolApplet0.jar" code="JmolApplet" height="504" hspace="48" jreversion="1.2" name="Jmol1" type="applet" vspace="120" width="624"> <jsp:params> <jsp:param name="load" value="#{Page3_protein.valueForJmol()}"/> <jsp:param name="script" value="select all;spacefill off; wireframe off;cartoon;color cartoon chain;select ligand;wireframe 40;spacefill 120;"/> <jsp:param name="progressbar" value="true"/> <jsp:param name="progresscolor" value="blue"/> <jsp:param name="boxbgcolor" value="black"/> <jsp:param name="boxfgcolor" value="white"/> <jsp:param name="progressbar" value="true"/> </jsp:params> </jsp:plugin> or <script> jmolInitialize("Jmol"); jmolApplet(500, "load ${Page3_protein.valueForJmol()}"); </script> The thing is that the method public String valueForJmol() returns the right string to the page and the applet BUT ... Jmol throws FileNotFound Exception... While the folder the file and the path they r all right... Any ideas what is worng or how to solve it please??? Thank you very much!! Andreas, Greece. |