<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)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 免费看美女被靠到爽的视频| 免费吃奶摸下激烈视频| 亚洲色欲啪啪久久WWW综合网| 国内自产拍自a免费毛片| v片免费在线观看| 亚洲人成在线观看| 久久久久国色AV免费看图片| 新最免费影视大全在线播放| 久久亚洲精品成人| 国产成人免费网站在线观看| 久久精品免费观看| 日韩欧美亚洲国产精品字幕久久久| 亚洲中文字幕无码爆乳av中文| 亚洲免费在线视频观看| 免费一级毛片在线播放视频免费观看永久| 亚洲AV美女一区二区三区| 免费看无码自慰一区二区| 久久久久久AV无码免费网站| 美女的胸又黄又www网站免费| 亚洲黄色免费网站| 亚洲精品亚洲人成在线观看下载| 无码人妻精品中文字幕免费东京热| 香蕉视频在线观看免费| 四虎必出精品亚洲高清| 亚洲2022国产成人精品无码区| 国产免费黄色大片| 永久免费毛片在线播放| 99re视频精品全部免费| 一级毛片免费播放男男| 亚洲av无码无线在线观看| 亚洲成人黄色网址| 亚洲精品自在在线观看| 亚洲成a人在线看天堂无码| 啦啦啦中文在线观看电视剧免费版| 亚洲欧洲免费视频| 久久一区二区三区免费| 男女猛烈无遮掩视频免费软件| 亚洲综合无码无在线观看| 久久久久亚洲av无码专区导航| 国产亚洲精品成人AA片新蒲金| 免费少妇a级毛片人成网|