首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Struts2 学习札记

2012-07-04 
Struts2 学习笔记一、导入jar包,配置web.xml中的filter(基于过滤器)?二、创建struts.xml配置文件。?*? 在ac

Struts2 学习笔记

一、导入jar包,配置web.xml中的<filter>(基于过滤器)

?

二、创建struts.xml配置文件。

?

*? 在action 中使用

??? 3)stream

?

?

contentType - the stream mime-type as sent to the web browser (default = text/plain).

?

?

contentLength - the stream length in bytes (the browser displays a progress bar).

?

?

contentDisposition - the content disposition header value for specifing the file name (default = inline, values are typically attachment;filename="document.pdf".

?

?

inputName - the name of the InputStream property from the chained action (default = inputStream).

?

?

bufferSize - the size of the buffer to copy from input to output (default = 1024).

?

?

allowCaching if set to 'false' it will set the headers 'Pragma' and 'Cache-Control' to 'no-cahce', and prevent client from caching the content. (default = true)

?

?

contentCharSet if set to a string, ';charset=value' will be added to the content-type header, where value is the string set. If set to an expression, the result of evaluating the expression will be used. If not set, then no charset will be set on the header

?

热点排行