[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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Content-Type:=20
application/x-java-jnlp-file</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;?xml version=3D"1.0" =
encoding=3D"utf-8"?&gt;=20
<BR>&lt;!-- JNLP File for SimpleExample Application --&gt; <BR>&nbsp;=20
&lt;jnlp</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; codebase=3D<A=20
href=3D"http://localhost/">http://localhost/</A> <BR>&nbsp;=20
href=3D"SimpleExample.jnlp"&gt; <BR>&nbsp;&nbsp;&nbsp; =
&lt;information&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;title&gt;Swing Application =
- Hello=20
World&lt;/title&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;vendor&gt;Rags&lt;/vendor&gt; =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;description&gt;Swing Application - Hello World&lt;/description&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description =
kind=3D"short"&gt;Swing=20
Application - Hello World&lt;/description&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;offline-allowed/&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/information&gt; =
<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;resources&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;j2se=20
version=3D"1.3"/&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jar=20
href=3D"SimpleExample.jar"/&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;/resources&gt;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;application-desc=20
main-class=3D"SimpleExample"/&gt; <BR>&lt;/jnlp&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></DIV></BODY></HTML>

------=_NextPart_000_001F_01C20C06.CDEEC6B0--