floater
Java Jedi
总版主
发贴: 3233
积分: 421
|
于 2003-02-20 23:24
gnome wrote: 原因在于你们把下载附件的事情交给apache了我觉得这个是一个奇怪的实现方法,因为附件管理应该是应用服务器的一个部分。在配置实际系统的时候,完全可能http前端和应用服务器处于不同的机器上,这个时候apache岂不要抓瞎? 干嘛不用单独的servlet来完成附件下载,这样也不需要filter什么的了,在servlet中内建安全检查。当然,这么做的前提是这个servlet应该设计精良一点,比如能够支持断点续传(好让大家用蚂蚁下附件啊)。
I agree that the http server and app server should set in different layers(different machines), like http-->app server-->db 3 different machines/layers(firewalls in between).
I had several cases already, everytime I downloaded the file and renamed it only in english.
rainman, when a user appends some file, could you do something right away, rather than later when another user tries to download, because it could be too late to do so since those nasty chars are already in there. Do it before it gets in.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code
|