标签:ati 页面 str sel 跳转 public add eth put
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="toLogin" class="usersAction" method="login">
<result name="success" type="redirectAction">findHouses</result> <!-- 登陆后就去查 -->
<result name="input">/login.jsp</result><!-- 默认转发 -->
</action>
<!-- bean的id就是class ,method就是HouseAction里的方法名 -->
<action name="findHouses" class="houseAction" method="findHouseList" >
<result name="success" type="dispatcher">/index.jsp</result>
</action>
<!-- 增加完成后,跳转列表页面 -->
<action name="toAdd" class="houseAction" method="saveHouse" >
<result name="success" type="redirectAction">findHouses</result>
</action>
<!-- 删除完成后,跳转列表页面 -->
<action name="toDel" class="houseAction" method="delHouse" >
<result name="success" type="redirectAction">findHouses</result>
</action>
<!-- 查询信息后,跳转修改页面 -->
<action name="toUpdate" class="houseAction" method="findHouse" >
<result name="success" type="dispatcher">/updateHouse.jsp</result>
</action>
<!-- 修改完成后,跳转列表页面 -->
<action name="commitUpdate" class="houseAction" method="updateHouse" >
<result name="success" type="redirectAction">findHouses</result>
</action>
</package>
</struts>
标签:ati 页面 str sel 跳转 public add eth put
原文地址:http://www.cnblogs.com/ZuiBuShangDao/p/6441104.html