在struts2中的转向方式
在浏览器的地址栏中可以看到跳转后的链接地址
1,
<action name="test" method="test">
<result name="success" type="redirect">
/test/test.htm
</result>
</action>
2,
<head>
<meta http-equiv="refresh" content="0; URL=/test/test.htm"/>
</head>
3,
<%
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
String newLocn = "/test/test.htm";
response.setHeader("Location",newLocn);
%>
上面三种方式都能改变浏览器的地址