[opencms-dev] Using Applets in OpenCms 5.0.1
Arash Kaffamanesh
arash.kaffamanesh at pomegranate.de
Mon May 9 19:31:49 CEST 2005
Hi,
upload your applet to your "resources" folder (or lib folder) of your
module into vfs and use it like this:
<applet codebase="<cms:link>../resources/</cms:link>"
code="image3dcube.class" height="154" width="142">
<param name="background" value="FFFFFF">
<param name="shadowcolor" value="FFFFFF">
<param name="textcolor" value="000000">
.
.
.
</applet>
hope it helps.
Best Regards,
Arash Kaffamanesh
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Gregory Frank
Sent: Sonntag, 8. Mai 2005 20:57
To: arthur.visser at student.groept.be; The OpenCms mailing list
Subject: Re: [opencms-dev] Using Applets in OpenCms 5.0.1
It's been a long while since I've used applets, but I seem to recall
that they have to be accessible from a web context. Since the sandbox
that the JVM in the browser is running in cannot access your hard drive,
it will not be able to access the servlet code. Try putting the class
into OpenCms so that it is retrieved from the website instead of the
hard drive.
Greg
Arthur Visser wrote:
Does anyone have experience with using applets in OpenCms?
System: OpenCMS 5.0.1 - Tomcat 5.0.18 - Java 1.4.2 - XP Home SP2 - MySQL
4.0.22
I have tried a code like this:
<applet align="center" codebase="C:\Program
Files\eclipse\workspace\MyBody\com\opencms\applet"
code="Dataretrieve.class" width="150" height="150">
</applet>
Dataretrieve.class is a java file made in Eclipse and copied to the
directory in 'codebase'. When I run this code I see the java logo
(coffeecup) but nothing happens.
Can it be a problem with the java itself or perhaps in the way it is
included in OpenCms? I tried various existing applets from the internet
but got the same result.
Thanks for your help or suggestions!
Arthur
_____
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050509/aaa896dc/attachment.htm>
More information about the opencms-dev
mailing list