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

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

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

    瘋狂

    STANDING ON THE SHOULDERS OF GIANTS
    posts - 481, comments - 486, trackbacks - 0, articles - 1
      BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
    1.
     ognl 靜態(tài)方法處理
    <s:property value="@com.e104.rd.util.DynaEnvConstants@getInt('ROWS_PER_PAGE')"/>
    struts2.0.1 支持
     
    struts2.2.3 默認(rèn)不支持,需要修改struts.xml
    <constant name="struts.ognl.allowStaticMethodAccess" value="true" />

    2. 參數(shù)傳遞的問題
     
    var url = '../Search/ResumeSearchAction_loadResumeList.action?pageNo=<s:property value="pageNo"/> ';
         var param = {
       target : url, 
       method : 'post',
       form: "searchConditionForm",
       div: "resume_list_div"
      }
     
    <form id="searchConditionForm" name="searchConditionForm" method="post" action="">
      <input type="hidden" name="pageNo" id="pageNo" value="1">
      。。。。。。。。。
    </form>
     
    url 后面跟pageNo 參數(shù),form里有pageNo 參數(shù),
     
    struts2.0.1 支持,struts2.2.3 不支持,需要把url后參數(shù)刪除,且struts2.2.3 參數(shù)傳遞要比前版嚴(yán)格 ,
    所以要測(cè)試,遇到參數(shù)傳遞的問題時(shí)候,再修改。

    3.導(dǎo)入actions.xml;
    struts2.0.1: <include file="**\actions.xml"/>
    struts2.2.3:
      <include file="/**/actions.xml"/>
    4.默認(rèn)攔截器的名字修改:
     struts2.0.1:<interceptor-ref name="token-session">
     struts2.2.3:<interceptor-ref name="tokenSession">

    5.
    struts2.0.1
    <result name="LOGOUT" type="redirect-action">
    struts2.2.3:
    <result name="LOGOUT" type="redirectAction">
    遇到攔截器名字,result type名字不一致,可以去查看
    struts2-core-2.2.3.jar/struts-default.xml

    6.

    <pao:FilterSelect id="jobExp.disTime_origin" name="jobExp.disTime_t" source="DataCode_4" filter="0" locale="#session['test.locale']" headerKey="0" headerValue=" 請(qǐng)選擇 "/>

             更新成綠色部分

    <pao:FilterSelect id="jobExp.disTime_origin" name="jobExp.disTime_t" source="DataCode_4" filter="{0}" locale="#session['test.locale']" headerKey="0" headerValue=" 請(qǐng)選擇 "/>



    7.

    然后就是 json

                   com.googlecode.jsonplugin.JSONUtil  需要替換   org.apache.struts2.json.JSONUtil




    其他可參考官網(wǎng)

    https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-UpdateDependencies

    轉(zhuǎn)自:http://accpchf.iteye.com/blog/1128492

    主站蜘蛛池模板: 人妻无码中文字幕免费视频蜜桃 | a视频在线观看免费| 暖暖免费日本在线中文| jjizz全部免费看片| 四虎影视免费永久在线观看| 中文亚洲AV片不卡在线观看| 亚洲天堂男人天堂| 日韩毛片免费一二三| 99视频在线精品免费| 亚洲欧洲精品成人久久曰影片 | 亚洲一区二区三区四区视频| 男男gay做爽爽的视频免费| 国产无遮挡无码视频免费软件| 蜜桃视频在线观看免费网址入口| 国产成人亚洲精品狼色在线| 亚洲不卡视频在线观看| a级毛片免费完整视频| 日本特黄特色aa大片免费| 久久久久久亚洲Av无码精品专口| 羞羞漫画在线成人漫画阅读免费 | 亚洲伦另类中文字幕| 无码AV动漫精品一区二区免费| 国产h视频在线观看免费| 亚洲国产精品久久久久婷婷软件| 黄页免费视频播放在线播放| 欧亚精品一区三区免费| 亚洲黄色片在线观看| 99久久精品免费精品国产| 久久久青草青青亚洲国产免观| 国产偷国产偷亚洲高清在线| 成人免费视频一区| 亚洲日韩国产AV无码无码精品| 久久精品免费一区二区| 久久狠狠高潮亚洲精品| 18禁成人网站免费观看| 亚洲国产成人资源在线软件| 亚洲视频在线免费播放| 亚洲三级中文字幕| 香蕉视频在线观看免费国产婷婷| 亚洲中文字幕无码爆乳app| 成人免费在线观看网站|