You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Klaus Drechsler <dr...@gmx.net> on 2001/03/08 01:51:57 UTC
C2 and applets
Hi,
how can I use cocoon2 with applets?
In the sitemap I tried the following:
<map:match pattern="applet/*.class">
<map:read src="applets/{1}.class"
mime-type="application/octet-stream"/>
</map:match>
The pipeline which generates the HTML code is not shown here, but an result
looks like this
(it is only a simple test):
<html><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Applet Test</title>
</head>
<body>
<p align="left">
<i>
Here you can see an java applet or
not.
</i>
</p>
<applet code="/cocoon/applet/TicTacToe.class" width="120"
height="120"></applet>
</body></html>
It looks quite well :-)
The problem is, that the applet is not loading. I only see the box where
the applet shoud be.
BUT if I manually type
"http://127.0.0.1:8080/cocoon/applet/TicTacToe.class" into the browser then
I can download the applet without any problems.
So, could someone show me the right way, how to include applets into my
cocoon applications?
Thanks in advice
bye,
Klaus
--
Farewell! I will omit no opportunity
That may convey my greetings, love, to thee.
Romeo&Juliet
(Act III, Scene V)
---------------------------------------------
PGP-Key: http://pgp.kdnet.de (soon!)
---------------------------------------------