Result类型
dispatcher
redirect
chain
redirectAction
freemarker
httpheader
stream
velocity
xslt
plaintext
tiles
前四种比较常用
结果类型实验:
前台页面:
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
My JSP 'result.jsp' starting page
Result类型
- dispatcher
- redirect
- chain
- redirectAction
- redirectAction2
- freemarker
- httpheader
- stream
- velocity
- xslt
- plaintext
- tiles
struts.xml:
"-//apache Software Foundation//DTD Struts Configuation 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
/r1.jsp
/r2.jsp
r1
/javaee
hello
r2
大伙可以根据上面样例实际操作一下,总结之后就明白了Result这几种常见的配置的运行结果
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net