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

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

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

    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 on 2011-03-29 12:07 Sheldon Sun 閱讀(240) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    <2011年3月>
    272812345
    6789101112
    13141516171819
    20212223242526
    272829303112
    3456789

    導航

    統計

    常用鏈接

    留言簿(3)

    隨筆檔案

    文章檔案

    搜索

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲Aⅴ无码一区二区二三区软件| 无人在线观看完整免费版视频| 99久久久国产精品免费牛牛| 999久久久免费精品国产 | 国产成人va亚洲电影| 一级毛片aaaaaa视频免费看| 久久国产乱子伦精品免费午夜 | 亚洲偷自拍拍综合网| 亚洲AV无码不卡在线播放| 久久亚洲AV无码精品色午夜 | 18禁无遮挡无码网站免费| 国产免费观看黄AV片| 亚洲色自偷自拍另类小说| 亚洲精品美女视频| 无码天堂亚洲国产AV| 国产午夜成人免费看片无遮挡| 国产精品怡红院永久免费| 免费看国产精品麻豆| 亚洲bt加勒比一区二区| 亚洲国产成人久久精品大牛影视| 成年免费a级毛片| 久视频精品免费观看99| 免费永久看黄在线观看app| 亚洲av午夜福利精品一区人妖| 亚洲国产最大av| 中文字幕不卡免费视频| 亚洲人成网站免费播放| 国产偷窥女洗浴在线观看亚洲| 亚洲精品在线免费看| eeuss影院免费直达入口| 免费h片在线观看网址最新| 亚洲国产V高清在线观看| 亚洲精品中文字幕乱码| 深夜福利在线视频免费| 亚洲一区二区三区免费视频| 亚洲男人天堂2020| 67194在线午夜亚洲| 免费人成在线观看网站| 日本中文一区二区三区亚洲| 久久亚洲国产精品成人AV秋霞 | 免费观看激色视频网站bd|