<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    2011年3月29日

    struts2 基礎

    1. action extends ActionSupport abstract class, because it already provide some default operation(input, createErrorMessage).
    2. property is set by reflect to action, and pass to jsp(jsp is filled with these properties, jsp is a servlet, what it returned to user is HTML file)
    3. static validate happened in action method(override ActionSupport method), dynamic validation happened in action layer.
    4. change dynamic property file value in this way : thankyou=Thank you for registerling %{personBean.firstName}, Resource file can be deployed in action layer, package layer and global layer
    5. exception can be configured in bellow way:  <global-exception-mappings>
       <exception-mapping exception="org.apache.struts.register.exceptions.SecurityBreachException" result="securityerror" />
        <exception-mapping exception="java.lang.Exception" result="error" />
         </global-exception-mappings>
       
        <global-results>
              <result name="securityerror">/securityerror.jsp</result>
         <result name="error">/error.jsp</result>
         </global-results>
    6. Wildcard Method Selection: flexible but not useful(<action name="*Person" class="org.apache.struts.tutorials.wildcardmethod.action.PersonAction" method="{1}">)
    7. integrate spring & struts 2 way: use spring plugin, main point is who to maintain action creation(spring || action), better choice is spring, you can enjoy great function of spring.
    8. Add Convention Plugin to so that you can use annotation
    9. intercepter can be configured in action level and package level.

    posted @ 2011-03-29 12:07 Sheldon Sun 閱讀(238) | 評論 (0)編輯 收藏

    <2011年3月>
    272812345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    導航

    統計

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲最大在线观看| 免费观看久久精彩视频| 久久综合图区亚洲综合图区| 免费高清资源黄网站在线观看| 黄网站色视频免费在线观看的a站最新| 亚洲jizzjizz少妇| 91情国产l精品国产亚洲区 | 中文字幕在线观看亚洲| 国产视频精品免费| 成人午夜免费福利视频| a级毛片视频免费观看| 黄色一级免费网站| 亚洲午夜精品一区二区麻豆| 亚洲精品视频在线免费| 亚洲Av综合色区无码专区桃色| 亚洲国产成人久久精品99| 女性自慰aⅴ片高清免费| 免费成人激情视频| 国产激情免费视频在线观看| 一进一出60分钟免费视频| 精品国产亚洲AV麻豆| 亚洲中文无码永久免| 日韩亚洲国产综合高清| 亚洲欧洲国产精品久久| 亚洲国语精品自产拍在线观看| 国产精品亚洲A∨天堂不卡| 国产精品亚洲w码日韩中文| 亚洲?v无码国产在丝袜线观看| 在线观看亚洲免费| 亚洲制服丝袜精品久久| 亚洲日本中文字幕| 久久久久亚洲AV成人无码| 亚洲s色大片在线观看| 亚洲国产另类久久久精品黑人| 日本亚洲国产一区二区三区| 亚洲国产专区一区| 亚洲成?v人片天堂网无码| 国产一级淫片a视频免费观看| 国产一区视频在线免费观看 | 亚洲国产精品福利片在线观看| 亚洲国产精品一区二区久久hs|