( from whereever the web page is )
it can read files from the server when the web page is on the serer,
it can read local files from your hard drive, when the web page and class files are on your hard drive, but only files in the directory of the web page or it's sub-directories, and you getCodeBase( ) and getDocumentBase( ) are helpful for accessing the files.
Silvio Simone wrote: > > you cannot load / save files from an applet ... > http://archives.java.sun.com/cgi-bin/wa?A2=ind0307&L=java3d-interest&P=51244
Well, no ...
You certainly can load files from an applet ...
an applet on a web page from a remote server
CANNOT read off you hard drive
but it can read files from the server, and an applet in a web page on you hard drive __ CAN __ read data files from the hardrive if they are in the directory of the web page in a subdirectory.
If you want your Java program to write / save to your hard drive you can write it so it can run either as an applet or an application, and when you want to save data, run it as an application.
Another way to allow applets to write to a hard drive is by running a web server, and Java web servers exits:
Tomcat is a Java web server from the Apache group and it comes with Sun's NetBeans IDE ( Integrated Development Enivronment ) as was mentioned yesterday on this list.
Here's an example of Java applet reading a VRML ( .wrl ) file:
Animation with VRML, Java ( Java3d & 'plain' Java ) Applets ------------------------------------------------------- http://www.frontiernet.net/~imaging/fingerspelling.html http://www.frontiernet.net/~imaging/shout3d/models/H-Anim/asl_H-Anim_x3d.wrl
http://www.frontiernet.net/~imaging/java3dviewer.html http://www.frontiernet.net/~imaging/java/java3dviewer/models/bucky_c180.obj
The above "Finger spelling" VRML animation .wrl file
also works with Java3d using Sun's VRML Loaders ...
Java3d Animation with VRML using Sun's VRML Loaders --------------------------------------------------------- http://www.frontiernet.net/~imaging/vrml_loaders_working.html
Java Web Server Services extending the power of your applets ------------------------------------------------------------ | | Sun's Netbeans IDE, Sun's Loaders, the Tomcat / Apache Web server. | | | Server delivered Java3d Client Applet ( JSP - Java Server Pages ) | -------------------------------------------------------- | http://www.frontiernet.net/~imaging/vrml_loaders_working.html | http://www.frontiernet.net/~imaging/vrml_loaders_working.html#server_jsp_client_3d | http://home.rochester.rr.com/javajava/sc_server_jsp_client_3d.jpg | | | Sun's NetBeans Java IDE & Java3d FlyThru & Scenegraph Editor | ---------------------------------------------------- | http://www.netbeans.org/products/ide/screenshots.html | http://java3d.netbeans.org/j3deditor_intro.html | http://java3d.netbeans.org/j3dfly_intro.html | http://java3d.netbeans.org/module_intro.html | http://java3d.netbeans.org/module_tutorial.html | | | | Java Tomcat Server ( an Apache project ) & Sun's JSP & Servlets | --------------------------------------------------------------- | http://jakarta.apache.org/tomcat/ | http://java.sun.com/products/jsp/ | http://www.frontiernet.net/~imaging/servlets_intro.html | http://archives.java.sun.com/cgi-bin/wa?A2=ind0307&L=java3d-interest&P=49925
-- Paul, Java Developer & Web Animator -------------------------------------- Imaging the Imagined: Modeling with Math & a Keyboard.
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
