摘要
在线文本编辑器在web项目中得到广泛应用,针对从网页文档中删除图片、音视频等对象时如何有效清除服务器上相应附件的问题,提出一种在Java EE平台下使用的基于过滤器或拦截器机制的通用方案,在每一次文档操作完成之后,由系统自动清除服务器上无用的磁盘文件;以FCKeditor编辑器的应用为例,介绍了实现技术和软件实现方法.附件的清理对用户是透明的,且代码易于实现和重用,能够有效而安全地应用于各类涉及内容发布的web系统中.
The text editor for intemet has been widely used in web projects. In view of the problem how to clean up the corresponding disk files in the server when deleted the objects of the image,audio and video from the content in the editor, a general-purpose sulotion application on Java EE platform was put forward. Based on filters or interceptor mechanism, it could automatically clean up the attachments loaded to the server but of no use whenever the eidt was over. Taking the FCKeditor application for example, the software implementation technology and method was introduced in detail. The cleaning was transparent to user. The sulution is safe and reusable, and also easy to implement. It can effectively apply in various types of web projects related to content publishing.
出处
《计算机系统应用》
2014年第2期230-234,共5页
Computer Systems & Applications
基金
中华女子学院2013年度立项项目(JS2013-02009)