maybe you need to enable tomcat to manage the wml files.
If I'm not wrong you have to chack the web.xml into yuor
TOMCAT_HOME\conf to verify that the mime mapping to use wml is not
commented or, at least, is presente.
I'm running Tomcat 5.5.7 and I already have the mime mapping enabled
and looks like this:
===
<mime-mapping>
        <!-- WML Source -->
        <extension>wml</extension>
        <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML -->
        <extension>wmlc</extension>
        <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- WML Script Source -->
        <extension>wmls</extension>
        <mime-type>text/vnd.wap.wmlscript</mime-type>
    </mime-mapping>
    <mime-mapping>
        <!-- Compiled WML Script -->
        <extension>wmlscriptc</extension>
        <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>
===

hope this help


On Thu, 17 Mar 2005 16:19:06 +0100, Nick Wolters <[EMAIL PROTECTED]> wrote:
> In mozilla the download window says: text/vnd.wap.wml
> 
> The file itself begins with the following:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
> "http://www.wapforum.org/DTD/wml_1.1.xml";>
>        <wml>
> 
> .....
> 
> </wml>
> 
> In web.xml I found the following:
> 
>  <mime-mapping> <!-- WML Source -->
>    <extension>wml</extension>
>    <mime-type>text/vnd.wap.wml</mime-type>
>  </mime-mapping>
> 
> Didn't write the servlet myself though.
> 
> Nick
> 
> -----Original Message-----
> From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
> Sent: donderdag 17 maart 2005 15:59
> To: Tomcat Users List
> Subject: Re: Servlet pops up as download
> 
> What is your content type set to?
> 
> Doug
> 
> ----- Original Message -----
> From: "Nick Wolters" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, March 17, 2005 9:51 AM
> Subject: Servlet pops up as download
> 
> > Hello,
> >
> > Having some issues with an ensim tomcat 4 installation.
> > Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a
> > download dialog instead of showing the page.
> > It downloads MyServlet which does contain all the code it should normally
> > display in the browser.
> >
> > I don't have much experience yet with tomcat, planning to read-up on it
> > next
> > month, but could someone help me with this for now?
> > What things should I check ?
> >
> > Kind regards,
> > Nick
> >
> >
> 
> ----------------------------------------------------------------------------
> ----
> 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to