/**
* 初始化方法
* @throws IOException
*/
public void init(){
response=ServletActionContext.getResponse();
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
try {
out=response.getWriter();
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* 关闭输出方法
* @throws IOException
*/
public void close(){
out.flush();
out.close();
}