Sep 20 2007

webwork/struts2的空Result

Category: 技术ssmax @ 14:38:01

做一个文件下载的action,直接用response输出,什么都自己优化,不用stream的result,想着怎么才能让webwork在result里面不做任何东西呢,最后看了下httpheader result的源代码,发现用这个result不传任何东西进去就行了,这里自己记录一下。如果把result的拦截器去掉应该也行,不过如果要输出error信息也就麻烦了一点,嘿嘿。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.