struts-config.xml的forward注意点之一

来源:互联网 发布:淘宝采集赚钱怎么弄 编辑:程序博客网 时间:2024/06/16 00:23
<action  path="/deleteuser" scope="request" type="org.springframework.web.struts.DelegatingActionProxy">
    <forward name="success" path="/showuser.do" redirect="true"/>
</action>
redirect="true",可以使你的URL地址跳到showuser.do,
http://localhost:8084/demo/showuser.do;
如果redirect为false或者不设置的时候,此属性则URL保留为上一次的URL地址,但显示的是showuser.do!
http://localhost:8084/demo/showuser.do?id=7
原创粉丝点击