On Monday 15 August 2005 08:31 am, alok vaid wrote:
> Well I can retrieve these files through my web page using languages
> like PHP. But it seems that I cannot retrieve them to the applet, and
> probably the applet wants the data files to be in web directory and
> not outside somewhere else in the server. Is there still a way I can
> access them in the applet?

No. (sorry :)

The significant difference between applets and PHP to your problem, is that 
PHP is server side, and the applet is client side. Server side stuff has 
access to all things on server (giving right file permissions ofcourse).

Client side stuff, like applets, only has access to stuff accessible via the 
web server, i.e. accessible with http://bla/bla.

> Can you explain more on  servlet/bla to allow access? I do not want to
> copy these files to by web directrory for some reasons. If there is no
> other way, than I would find a way out and copy the data files to web
> directory, and but it would be great if I could achieve my task
> without it.

Copying is the only option. If the size is too much, you could use a servlet 
or a CGI-bin script to serve a requested data file. You might even have PHP 
do this, but then you need to make sure that only the data is transmitted and 
no HTML stuff. Probably not too difficult to set up.

Egon


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to