You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Jingmei Li <Ji...@bentley.com> on 2002/05/01 17:15:56 UTC

FW: where to add mime-mapping?

Please read my mail to slide-user group below.
Also, I tried setting getcontenttype in the code like the following:
It worked at some point but I don't feel like it's the right place to do
this...

  if (uri.lastIndexOf(".dgn") > 0)
		{
		property = new NodeProperty("getcontenttype",
"application/microstation", true);
	    revisionDescriptor.setProperty(property);
        }

Need help!
Jingmei

-----Original Message-----
From: Jingmei Li [mailto:Jingmei.Li@bentley.com]
Sent: Tuesday, April 30, 2002 3:15 PM
To: 'slide-user@jakarta.apache.org'
Subject: where to add mime-mapping?


I would like to associate file extension .dgn with
"application/microstation" but haven't found a reasonable place to add the
mime-mapping for it. Now double-clicking a dgn file in slide webdav will
open up the file as ascii junk.

I saw web.xml in tomcat\webapps\slide\WEB-INF\ and tried adding it there,
but it didn't work. Any idea?
  <mime-mapping>
    <extension>dgn</extension>
    <mime-type>application/microstation</mime-type>
  </mime-mapping>

Thanks,
Jingmei 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>