[Zope] set the MIME Type
Christian Peer
chpeer@gmx.net
Tue, 4 Jun 2002 20:31:28 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_001F_01C20C06.CDEEC6B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Additional to Message 91060:
Yes, I have inserted a blank line.
Here is the source code of the DTML Method (SimpleExample.jnlp):=20
Content-Type: application/x-java-jnlp-file
<?xml version=3D"1.0" encoding=3D"utf-8"?>=20
<!-- JNLP File for SimpleExample Application -->=20
<jnlp
codebase=3Dhttp://localhost/=20
href=3D"SimpleExample.jnlp">=20
<information>=20
<title>Swing Application - Hello World</title>=20
<vendor>Rags</vendor>=20
<description>Swing Application - Hello World</description>=20
<description kind=3D"short">Swing Application - Hello =
World</description>=20
<offline-allowed/>=20
</information>=20
<resources>=20
<j2se version=3D"1.3"/>=20
<jar href=3D"SimpleExample.jar"/>=20
</resources>=20
<application-desc main-class=3D"SimpleExample"/>=20
</jnlp>
The SimpleExample.html links to SimpleExample.jnlp and the third file in =
the Zope
folder is SimpleExample.jar.=20
What happens:
Java Web Start is loaded correctly and than I get a download error when =
it tries to
access the recource "http://localhost/SimpleExample.jnlp", the server =
returns wrong MIME type text/html.
Could you help me?
Thanks.
Chris
------=_NextPart_000_001F_01C20C06.CDEEC6B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Additional to Message =
91060:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Yes, I have inserted a blank =
line.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Here is the source code of the DTML =
Method=20
(SimpleExample.jnlp): </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Content-Type:=20
application/x-java-jnlp-file</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><?xml version=3D"1.0" =
encoding=3D"utf-8"?>=20
<BR><!-- JNLP File for SimpleExample Application --> <BR> =20
<jnlp</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> codebase=3D<A=20
href=3D"http://localhost/">http://localhost/</A> <BR> =20
href=3D"SimpleExample.jnlp"> <BR> =
<information>=20
<BR> <title>Swing Application =
- Hello=20
World</title> <BR> =20
<vendor>Rags</vendor> =
<BR> =20
<description>Swing Application - Hello World</description>=20
<BR> <description =
kind=3D"short">Swing=20
Application - Hello World</description>=20
<BR> <offline-allowed/>=20
<BR> </information> =
<BR> =20
<resources> <BR> <j2se=20
version=3D"1.3"/> <BR> <jar=20
href=3D"SimpleExample.jar"/> <BR> =
</resources>=20
<BR> <application-desc=20
main-class=3D"SimpleExample"/> <BR></jnlp><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The SimpleExample.html links to =
SimpleExample.jnlp=20
and the third file in the Zope</FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>folder is SimpleExample.jar.=20
</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>What happens:</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Java Web Start is loaded correctly and =
than I get a=20
download error when it tries to</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>access the recource=20
"http://localhost/SimpleExample.jnlp", the server returns wrong MIME =
type=20
text/html.</FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Could you help me?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></DIV></BODY></HTML>
------=_NextPart_000_001F_01C20C06.CDEEC6B0--