[opencms-dev] Using Applets in OpenCms 5.0.1
Gregory Frank
greg at emailanalyst.com
Sun May 8 20:57:12 CEST 2005
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/20050508/93915067/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: greg.vcf
Type: text/x-vcard
Size: 132 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050508/93915067/attachment.vcf>
More information about the opencms-dev
mailing list