<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 :: 首頁 :: 新隨筆 :: 聯(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

    主站蜘蛛池模板: 曰批全过程免费视频免费看 | 国产乱子伦精品免费女| 七次郎成人免费线路视频| 亚洲国色天香视频| 亚洲AV一宅男色影视| 亚洲AV日韩精品一区二区三区| 91网站免费观看| 久草免费手机视频| 久久久WWW成人免费精品| 日日摸夜夜添夜夜免费视频 | 国产国产人免费视频成69堂| 中国在线观看免费的www| 国产亚洲蜜芽精品久久| 亚洲熟妇无码八V在线播放| 亚洲国产成人久久| 亚洲黄色高清视频| 亚洲色图在线播放| 亚洲AV无码一区二区二三区入口| 国产亚洲精品免费视频播放| 亚洲福利精品一区二区三区| 国产片免费福利片永久| 午夜免费福利影院| 在线免费观看国产视频| 成人爱做日本视频免费| 成人超污免费网站在线看| 91麻豆最新在线人成免费观看 | 亚洲色中文字幕无码AV| 亚洲精品色婷婷在线影院| 亚洲成A人片在线观看中文| 免费v片在线观看品善网| 又粗又硬又大又爽免费视频播放| 日本不卡免费新一二三区| 日韩在线免费看网站| 国产jizzjizz视频全部免费| 亚洲国产综合无码一区二区二三区| 日本xxwwxxww在线视频免费| 国产乱弄免费视频| 国产亚洲欧洲Aⅴ综合一区| 国产亚洲一区二区在线观看| 久久精品国产亚洲综合色| 亚洲AV日韩精品久久久久|