<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
Greg<br>
<br>
Arthur Visser wrote:
<blockquote
 cite="mid!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAaru67Y7oEUylVcG+hEnmr8KAAAAQAAAAiCl176X7pkat1Mwz4C9qAQEAAAAA@student.groept.be"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 10 (filtered)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.Opmaakprofiel3, li.Opmaakprofiel3, div.Opmaakprofiel3
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        color:black;
        font-weight:bold;}
p.Niv3-Omron, li.Niv3-Omron, div.Niv3-Omron
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:54.0pt;
        text-indent:-36.0pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:Arial;
        color:black;
        font-weight:bold;}
p.BishopTitle2, li.BishopTitle2, div.BishopTitle2
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:12.0pt;
        font-family:Arial;
        font-weight:bold;}
p.BishopTitle3, li.BishopTitle3, div.BishopTitle3
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:Arial;
        font-weight:bold;}
p.BishopTitle4, li.BishopTitle4, div.BishopTitle4
        {margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:3.0pt;
        margin-left:0cm;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:Arial;
        font-weight:bold;}
span.EmailStijl22
        {font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.9pt 42.55pt 42.55pt 2.0cm;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">Does
anyone have experience with
using applets in OpenCms?</span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">System:
  </span></font><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">OpenCMS
5.0.1 - Tomcat 5.0.18 - Java 1.4.2 - </span></font><font color="black"
 face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">XP
Home SP2</span></font><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"> -
MySQL 4.0.22</span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"> </span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">I have
tried a code like this:</span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"> </span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"><applet
align="center" codebase="C:\Program
Files\eclipse\workspace\MyBody\com\opencms\applet"
code="Dataretrieve.class"
width="150" height="150"></span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"></applet></span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"> </span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">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.</span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">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.</span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;"> </span></font></p>
  <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: windowtext;">Thanks
for your help or suggestions!</span></font></p>
  <p class="MsoAutoSig"><font face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana;"> </span></font></p>
  <p class="MsoAutoSig"><font face="Verdana" size="2"><span
 style="font-size: 10pt; font-family: Verdana;" lang="NL-BE">Arthur </span></font></p>
  <p class="MsoAutoSig"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="FR"> </span></font></p>
  <p class="MsoAutoSig"><font face="Verdana" size="1"><span
 style="font-size: 7.5pt; font-family: Verdana;" lang="FR">          
  </span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;" lang="FR"> </span></font></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">


_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</a></pre>
</blockquote>
</body>
</html>