tomcat6.0怎么支持中文文件名的文件下载
发布时间:2010-06-14 17:13:56 文章来源:www.iduyao.cn 采编人员:星星草
tomcat6.0如何支持中文文件名的文件下载
在tomcat6.0下,我想要下载文件,文件名是中文的,该怎样做才能让tomcat6.0支持。我的tomcat的server.xml 文件配置如下:
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8005" shutdown="SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
weblogic10.3部署s2sh项目
我的环境如下
编译运行环境都是jdk1.6,jre1.6
strtuts2.2.1
hibernate3.6.0
spring3.0.5
s2sh项目在tom...
-
大网站的查询使用什么技术
一般大型项目的查询使用什么技术啊?j2ee这块
我使用hibernate-search,这个能用于大型项目吗?
还有就是hib...
-
一个小公司的门户网站服务器的最低配置应该怎么样?需要哪些设备和条件? 请各位专家预估下价格和网站开发成本!
一个小公司的门户网站...
-
关于weblogic线程阻塞问题。
不知道大家有没有遇到类似的问题,
有没有一些解决方案和想法给我。
只要有想法,就给分。
Java code
"E...
-
在服务器端生成一个文件怎么将文件的路径返回给客户端
ssh2中客户端发送一个请求然后在服务器端根据请求内容生成一个文件 怎么将...
-
手机短信发送开发
如果用C#实现手机短信的发送?
比如我有一个网站需要用到手机验证的,那我该如何来给用户发送验证码?我看了网上有人...
-
帮我看看这个异常~不理解为什么报!
严重: Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml
java.la...
-
tomcat一天就挂掉
我的项目用tomcat,当天没事,运行一天,到第二天早上就挂了
重启就好了
不知道为什么
------解决方案-------------...
-
网站页面一下能打开,一下打不开
网站页面一下能打开,一下打不开
我不是做广告,www 39wck com
请帮忙加个.看看是怎么回事
我用...
-
如何让别人通过外网访问你电脑上的网站
电脑环境:XP系统,IIS5.1,电信宽带,使用家庭小型路由器,杀毒软件没装,防火墙也关闭(设置里...