[opencms-dev] Using Applets in OpenCms 5.0.1
Arthur Visser
arthur.visser at student.groept.be
Mon May 9 23:39:23 CEST 2005
I've tried this but it somehow the applet is found but not
properly executed. In a regular html page I get the desired
result, but in OpenCms I get a white square (no errors!).
Anybody other suggestions? Something is blocking proper
execution. I cannot find out what. No errors are produced.
System: OpenCMS 5.0.1 - Tomcat 5.0.18 - Java 1.4.2 - XP Home
SP2 - MySQL 4.0.22
Arthur Visser
-----Oorspronkelijk bericht-----
Van: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Namens Arash
Kaffamanesh
Verzonden: 09 May 2005 19:32
Aan: 'The OpenCms mailing list'
Onderwerp: RE: [opencms-dev] Using Applets in OpenCms 5.0.1
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/ce885d3d/attachment.htm>
More information about the opencms-dev
mailing list