English 中文(简体)
如何告诉网络.xml,它不应处理htc文档,因此将其留给网络服务器?
原标题:How to tell web.xml that it should not handle .htc files and so leave them to the web server?

如何告诉网络.xml,它不应处理htc文档,因此将其留给网络服务器?

我如何能够这样做?

我正在使用Vadin,它的服务器收到所有要求,但我确实需要使用一个htc文档,以固定IE(你微软)玉米,使其更加看望。

如何做到这一点?

Vaadin Servlet

>     <servlet-mapping>
>         <servlet-name>vaadinServlet</servlet-name>
>         <url-pattern>/*</url-pattern>
>     </servlet-mapping>

Servlet

>   <servlet>
>       <servlet-name>vaadinServlet</servlet-name>
>       <servlet-class>com.vaadin.terminal.gwt.server.GAEApplicationServlet</servlet-class>
    <init-param>
>           <description>
>           Application widgetset</description>
>           <param-name>widgetset</param-name>
>           <param-value>web.googlemapwidget.Widgetset</param-value>
>       </init-param>   </servlet>
最佳回答
<servlet-mapping>
    <servlet-name>vaadinServlet</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
    <servlet-name>default</servlet-name>
    <!-- servlet-name>staticServlet</servlet-name --> <!-- removed as suggested by raymi -->
    <url-pattern>/*.htc</url-pattern>
</servlet-mapping>

通知中,离散射线的<代码>url-pattern从/*改为/,即缺省绘图。 也就是说,如果没有其他模式相匹配,则使用该服务器。 http://gigadot-blogger.blogspot.com/ 2008/09/url-patterns-in-servlet-mapping-by.html”rel=“nofollow noreferer”>quick reference 我撰写了尿素分布图。

You will need to define your static servlet. This depends on your servlet container. For tomcat,
<!-- removed as suggested by raymi -->
<!--servlet>
    <servlet-name>staticServlet</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
</servlet-->

In case you do not want your staticServlet to depends on the servlet containter, read this.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签