Selaa lähdekoodia

增加文件下载的配置。

zzy.zhiyuan.foxmail 8 vuotta sitten
vanhempi
commit
9d932469a9
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      src/main/webapp/WEB-INF/web.xml

+ 9 - 0
src/main/webapp/WEB-INF/web.xml

31
  	<servlet-class>org.jfw.web.servlet.fileupload.cached.CachedUploadServlet</servlet-class>
31
  	<servlet-class>org.jfw.web.servlet.fileupload.cached.CachedUploadServlet</servlet-class>
32
  	<load-on-startup>3</load-on-startup>
32
  	<load-on-startup>3</load-on-startup>
33
  </servlet>
33
  </servlet>
34
  <servlet>
35
  	<servlet-name>FileDownload</servlet-name>
36
  	<servlet-class>com.ekexiu.portal.util.FileDownload</servlet-class>
37
  	<load-on-startup>4</load-on-startup>
38
  </servlet>
34
  
39
  
35
  <servlet-mapping>
40
  <servlet-mapping>
36
    <servlet-name>ajax</servlet-name>
41
    <servlet-name>ajax</servlet-name>
44
    <servlet-name>resFileUploadServlet</servlet-name>
49
    <servlet-name>resFileUploadServlet</servlet-name>
45
    <url-pattern>/ajax/resFileUpload</url-pattern>
50
    <url-pattern>/ajax/resFileUpload</url-pattern>
46
  </servlet-mapping>
51
  </servlet-mapping>
52
  <servlet-mapping>
53
    <servlet-name>FileDownload</servlet-name>
54
    <url-pattern>/ajax/FileDownload</url-pattern>
55
  </servlet-mapping>
47
</web-app>
56
</web-app>