锘??xml version="1.0" encoding="utf-8" standalone="yes"?>九九精品在线视频,一夜七次郎国产精品亚洲,国产免费a∨片在线观看不卡http://www.aygfsteel.com/apl330/category/45812.htmlzh-cnTue, 14 Dec 2010 21:50:54 GMTTue, 14 Dec 2010 21:50:54 GMT60閰嶇疆Struts榪囩▼鍑洪棶棰?/title><link>http://www.aygfsteel.com/apl330/archive/2010/12/14/340613.html</link><dc:creator>jack zhai</dc:creator><author>jack zhai</author><pubDate>Tue, 14 Dec 2010 02:58:00 GMT</pubDate><guid>http://www.aygfsteel.com/apl330/archive/2010/12/14/340613.html</guid><wfw:comment>http://www.aygfsteel.com/apl330/comments/340613.html</wfw:comment><comments>http://www.aygfsteel.com/apl330/archive/2010/12/14/340613.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/apl330/comments/commentRss/340613.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/apl330/services/trackbacks/340613.html</trackback:ping><description><![CDATA[<p><package name="member" namespace="/member" extends="struts-default"> <br>      <action name="regist" class="cc.apl330.action.MemberAction"> <br>         <font color="#ff0000"><result >/suc.jsp</result></font> <br>          <result name="isExists">/fail.jsp</result> <br>      </action> <br>  </package></p> <p><font color="#ff0000">榪愯姝e父錛岀敤鎴鋒敞鍐屾垚鍔熷悗浼?xì)锜╄浆鍒皊uc.jsp</font></p> <p> </p> <p>濡傛灉灝嗛厤緗敼鎴?/p> <p><package name="member" namespace="/member" extends="struts-default"> <br>      <action name="regist" class="cc.apl330.action.MemberAction"> <br>         <font color="#ff0000"><result >/suc.html</result></font> <br>          <result name="isExists">/fail.jsp</result> <br>      </action> <br>  </package></p> <p><font color="#ff0000">榪愯涓嶆甯革紝鐢ㄦ埛杈撳叆鏁版嵁鍚庯紝鐐瑰嚮紜畾銆傛煡鐪嬫暟鎹簱錛屾暟鎹簱鍐欏叆姝e父錛屼絾欏甸潰絀虹櫧錛屽湴鍧鏍忓嵈姝e父錛?/font><a href="http://localhost:8080/test/member/regist"><font color="#ff0000">http://localhost:8080/test/member/regist</font></a></p> <img src ="http://www.aygfsteel.com/apl330/aggbug/340613.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/apl330/" target="_blank">jack zhai</a> 2010-12-14 10:58 <a href="http://www.aygfsteel.com/apl330/archive/2010/12/14/340613.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎷︽埅鍣ㄧ殑瀹炵幇鍘熺悊http://www.aygfsteel.com/apl330/archive/2010/07/31/327638.htmljack zhaijack zhaiSat, 31 Jul 2010 07:19:00 GMThttp://www.aygfsteel.com/apl330/archive/2010/07/31/327638.htmlhttp://www.aygfsteel.com/apl330/comments/327638.htmlhttp://www.aygfsteel.com/apl330/archive/2010/07/31/327638.html#Feedback0http://www.aygfsteel.com/apl330/comments/commentRss/327638.htmlhttp://www.aygfsteel.com/apl330/services/trackbacks/327638.html

榪愯涓葷被
Main.java

public class Main {
    public static void main(String[] args) {
        new ActionInterceptor().invoke() ;
    }
}

/********************************/

鎷︽埅鍣ㄦ牳蹇?br>ActionInterceptor.java

import java.util.ArrayList;
import java.util.List;

public class ActionInterceptor {
    List<Inte> intes = new ArrayList<Inte>() ;
    int index = -1 ;
    public ActionInterceptor() {
        intes.add(new FistInte()) ;
        intes.add(new SecondInte()) ;
    }
    public void invoke() {
        index++ ;
        if(index >= intes.size()) {
            new Action().execute() ;
        }else {
            this.intes.get(index).inte(this) ;
        }
    }
}

/********************************/

鎺ュ彛:涓庢嫤鎴櫒涔嬮棿鐨勯氳鎺ュ彛
Inte.java

public interface Inte {
    void inte(ActionInterceptor actioninterceptor) ;
}

/********************************/

鎺ュ彛浣跨敤綾?br>FistInte.java
public class FistInte implements Inte {

    @Override
    public void inte(ActionInterceptor actioninterceptor) {
        System.out.println(1) ;
        actioninterceptor.invoke() ;
        System.out.println(-1) ;
    }
}

SecondInte.java
public class SecondInte implements Inte {

    @Override
    public void inte(ActionInterceptor actioninterceptor) {
        System.out.println(2) ;
        actioninterceptor.invoke() ;
        System.out.println(-2) ;
    }
}

/********************************/

鍔ㄤ綔綾?

Action.java
public class Action {
    public void execute() {
        System.out.println("execute!") ;
    }
}



jack zhai 2010-07-31 15:19 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 鹤峰县| 宾川县| 玉田县| 盘锦市| 酒泉市| 抚宁县| 苗栗县| 兴国县| 深州市| 襄樊市| 东乡族自治县| 探索| 明水县| 连城县| 资兴市| 营山县| 永城市| 泾川县| 井研县| 新密市| 宣汉县| 平度市| 平乡县| 郸城县| 盖州市| 宕昌县| 桃源县| 富锦市| 旬阳县| 华蓥市| 泰来县| 谢通门县| 都昌县| 泾源县| 青州市| 景洪市| 都兰县| 曲阳县| 南乐县| 贵州省| 加查县|