<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=507212517-09052005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=507212517-09052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=507212517-09052005>upload
your applet to your "resources" folder (or lib folder) of your module into vfs
and use it like this:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=507212517-09052005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><applet
codebase="<cms:link>../resources/</cms:link>"
code="image3dcube.class" height="154" width="142"></FONT></DIV>
<DIV><SPAN class=507212517-09052005></SPAN><FONT face=Arial color=#0000ff
size=2><param name="background" value="FFFFFF"><BR><param
name="shadowcolor" value="FFFFFF"><BR><param name="textcolor"
value="000000"></FONT></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2></applet></FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff size=2>hope
it helps.</FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff size=2>Best
Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=507212517-09052005><FONT face=Arial color=#0000ff size=2>Arash
Kaffamanesh</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Gregory Frank<BR><B>Sent:</B> Sonntag, 8. Mai 2005
20:57<BR><B>To:</B> arthur.visser@student.groept.be; The OpenCms mailing
list<BR><B>Subject:</B> Re: [opencms-dev] Using Applets in OpenCms
5.0.1<BR><BR></FONT></DIV>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 content="Microsoft Word 10 (filtered)" name=Generator>
<STYLE>@font-face {
font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 70.9pt 42.55pt 42.55pt 2.0cm; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoAutoSig {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
P.Opmaakprofiel3 {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt; COLOR: black; FONT-FAMILY: Arial
}
LI.Opmaakprofiel3 {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt; COLOR: black; FONT-FAMILY: Arial
}
DIV.Opmaakprofiel3 {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt; COLOR: black; FONT-FAMILY: Arial
}
P.Niv3-Omron {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt 54pt; COLOR: black; TEXT-INDENT: -36pt; FONT-FAMILY: Arial
}
LI.Niv3-Omron {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt 54pt; COLOR: black; TEXT-INDENT: -36pt; FONT-FAMILY: Arial
}
DIV.Niv3-Omron {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 12pt 0cm 3pt 54pt; COLOR: black; TEXT-INDENT: -36pt; FONT-FAMILY: Arial
}
P.BishopTitle2 {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
LI.BishopTitle2 {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
DIV.BishopTitle2 {
FONT-WEIGHT: bold; FONT-SIZE: 12pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
P.BishopTitle3 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
LI.BishopTitle3 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
DIV.BishopTitle3 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
P.BishopTitle4 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
LI.BishopTitle4 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
DIV.BishopTitle4 {
FONT-WEIGHT: bold; FONT-SIZE: 11pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
SPAN.EmailStijl22 {
FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Arial; TEXT-DECORATION: none
}
DIV.Section1 {
page: Section1
}
OL {
MARGIN-BOTTOM: 0cm
}
UL {
MARGIN-BOTTOM: 0cm
}
</STYLE>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">Does anyone
have experience with using applets in OpenCms?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">System:
</SPAN></FONT><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">OpenCMS 5.0.1
- Tomcat 5.0.18 - Java 1.4.2 - </SPAN></FONT><FONT face=Arial color=black
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">XP Home
SP2</SPAN></FONT><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"> - MySQL
4.0.22</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">I have tried
a code like this:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"><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 face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"></applet></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">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 face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">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 face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Arial">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 lang=NL-BE
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Arthur </SPAN></FONT></P>
<P class=MsoAutoSig><FONT face="Times New Roman" size=3><SPAN lang=FR
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P class=MsoAutoSig><FONT face=Verdana size=1><SPAN lang=FR
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">
</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN
lang=FR style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
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></BLOCKQUOTE></BODY></HTML>