ITeye博客

Struts2

共 1 篇文章

Struts2视图转发类型

在Struts2中result的视图转发类型比较常用的有四种:dispathcher(默认值):服务器内部请求转发类型; redirect:重定向到某个jsp文件; redirectAction:重定向到某个action; plainText:他主要用在输出页面源代码。 在struts.xml中配置如下: 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE struts PUBLIC 3 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" 4 "http:/…

2011-11-08 22:43 · Struts2 · Struts2 视图