Hi everyone!, first at all thanks for your support. 

I tried Angel's first option and it didn't work out, the second one did it.
But I'm inserting the html code into a jsp which belong to a portlet which
will be run on a tomcat's portal. The main idea is to put Jmol as an
external directory of this portlet where it will be called and load from
user's home the pdb file. Let me explain it better, Jmol will be executed
from /usr/local/<tomcat-dir>/webapps/<portlet-dir>/jmol and I need to load
files from /home/<user-dir>/<work-dir>/file.pdb, I successfully load
jmolApplet thought Jmol.js, I'm able to see it's menu but I can't load the
file properly. I can see in the menu in the top this message "no atom
loaded".

Timothy suggest to use the signed Jmol applet and I could try it, but I need
the proper code to insert in my jsp to do it. Anybody can give a working
example to follow?

Thanks in advance

Freddy A. Rojas P.


On 2005-07-11 (21:57) Angel Herraez wrote:

>On 11 Jul 2005 at 15:34, Freddy A. Rojas P. wrote:
>
>>Windows and Unix but, in both cases I could load the applet but not 
>>the molecule. I tried to load the molecule from applet's console but I 
>>got an I/O Exception. Can you tell me what I'm doing wrong?
>>
>Hi, Freddy
>
>Sounds like the eternal problem of accessing local files from Java; the 
>files must be in a folder equal or below the applet.
>
>Try to move the xyz file:
>
<snip>
>
>Recommended way to do: put jmolapplet.jar in the topĀ  folder of your 
>web project, then all molecules will be below it, as in:
>

hi Freddy,

this list is the place for questions; ask away!


two alternatives to Angel's suggestion:

1. serve your Jmol pages from a Web server, instead of local files.

2. use the signed Jmol applet that comes with the Jmol download.


I recommend option 1 if you will be running your Jmol application from the
Web (most common).  setting up a local Web server is fairly easy these days
(IOW, you don't have to have it publically accessible until you want it so.)
in addition, you get rid of the non-trivial intermediate step of moving your
project from local file to http - non-trivial becuase there are some
differences between the two that can really hang you up.  plus it lets you
organize your documents in almost any way.

I recommend option 2 if your application is designed to be downloaded and
run locally.  using the singed applet allows much more flexibility in your
dir structure, allows loading pdb files from anywhere (who knows where a
user puts pdb files?), and will work if, for some reason, Angel's method
suddenly becomes a security hole that gets plugged in the future. YNK.


good luck!

tim
--
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
usa:north carolina:raleigh

"Enzymes are things invented by biologists that explain things which
otherwise require harder thinking." - Jerome Lettvin


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to