久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='YNSnT'></bdo><ul id='YNSnT'></ul>
    1. <legend id='YNSnT'><style id='YNSnT'><dir id='YNSnT'><q id='YNSnT'></q></dir></style></legend>

        <small id='YNSnT'></small><noframes id='YNSnT'>

      1. <tfoot id='YNSnT'></tfoot>
        <i id='YNSnT'><tr id='YNSnT'><dt id='YNSnT'><q id='YNSnT'><span id='YNSnT'><b id='YNSnT'><form id='YNSnT'><ins id='YNSnT'></ins><ul id='YNSnT'></ul><sub id='YNSnT'></sub></form><legend id='YNSnT'></legend><bdo id='YNSnT'><pre id='YNSnT'><center id='YNSnT'></center></pre></bdo></b><th id='YNSnT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YNSnT'><tfoot id='YNSnT'></tfoot><dl id='YNSnT'><fieldset id='YNSnT'></fieldset></dl></div>
      2. 使用 strut2 jquery 插件標簽將 JSON 對象發送到 Str

        Send JSON object to Struts 2 action by using strut2 jquery plugin tags(使用 strut2 jquery 插件標簽將 JSON 對象發送到 Struts 2 操作)

            <tbody id='Xvt2u'></tbody>
          • <i id='Xvt2u'><tr id='Xvt2u'><dt id='Xvt2u'><q id='Xvt2u'><span id='Xvt2u'><b id='Xvt2u'><form id='Xvt2u'><ins id='Xvt2u'></ins><ul id='Xvt2u'></ul><sub id='Xvt2u'></sub></form><legend id='Xvt2u'></legend><bdo id='Xvt2u'><pre id='Xvt2u'><center id='Xvt2u'></center></pre></bdo></b><th id='Xvt2u'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Xvt2u'><tfoot id='Xvt2u'></tfoot><dl id='Xvt2u'><fieldset id='Xvt2u'></fieldset></dl></div>

              <small id='Xvt2u'></small><noframes id='Xvt2u'>

                <tfoot id='Xvt2u'></tfoot>
                  <bdo id='Xvt2u'></bdo><ul id='Xvt2u'></ul>

                  <legend id='Xvt2u'><style id='Xvt2u'><dir id='Xvt2u'><q id='Xvt2u'></q></dir></style></legend>
                • 本文介紹了使用 strut2 jquery 插件標簽將 JSON 對象發送到 Struts 2 操作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們可以通過 json 攔截器將 JSON 發送到 Struts2 動作.http:///tech.learnerandtutor.com/send-json-object-to-struts-2-action-by-jquery-ajax/.

                  We can send JSON to Struts2 actions by json interceptor. There is good sample at http://tech.learnerandtutor.com/send-json-object-to-struts-2-action-by-jquery-ajax/.

                  json 攔截器要求請求 content typeapplication/jsonapplication/json-rpc這個可以在我們直接使用Ajax的時候設置,比如:

                  The json interceptor requires that the requests content type be application/json or application/json-rpc this can be set when we directly use Ajax like:

                  $.ajax({
                      url: "writeJSON.action",
                      data: data1,
                      dataType: 'json',
                      contentType: 'application/json',
                  

                  但我們正在使用 struts 2 jquery 插件標簽(sj:asj:submit ...)為我們管理 ajax 調用.

                  But we are using struts 2 jquery plugin tags (sj:a and sj:submit ...) which manage ajax calls for us.

                  有什么方法可以用這些標簽設置contentType.

                  Is there any way that we can set the contentType with these tags.

                  我沒有找到這個標簽屬性.

                  I did not find tag properties for this.

                  如果沒有實現,有沒有其他方法可以設置.

                  If it is not implemented is there any other way to set it.

                  推薦答案

                  您應該將 Content-type: application/json 標頭設置為 $.ajax().

                  You should set Content-type: application/json header to xhr object that is used by the $.ajax().

                  $.ajax({
                      url: "writeJSON.action",
                      data: data1,
                      dataType: 'json',
                      contentType: 'application/json',
                  

                  插件使用$.ajaxSubmit(),這種提交應該被淘汰,因為它不適用于json數據.

                  The plugin is using $.ajaxSubmit(), this kind of submission should be eliminated because it doesn't work with json data.

                  這篇關于使用 strut2 jquery 插件標簽將 JSON 對象發送到 Struts 2 操作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  XmlHttpRequest onprogress interval(XmlHttpRequest onprogress 間隔)
                • <tfoot id='A3GRB'></tfoot>
                        <bdo id='A3GRB'></bdo><ul id='A3GRB'></ul>

                        <i id='A3GRB'><tr id='A3GRB'><dt id='A3GRB'><q id='A3GRB'><span id='A3GRB'><b id='A3GRB'><form id='A3GRB'><ins id='A3GRB'></ins><ul id='A3GRB'></ul><sub id='A3GRB'></sub></form><legend id='A3GRB'></legend><bdo id='A3GRB'><pre id='A3GRB'><center id='A3GRB'></center></pre></bdo></b><th id='A3GRB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A3GRB'><tfoot id='A3GRB'></tfoot><dl id='A3GRB'><fieldset id='A3GRB'></fieldset></dl></div>

                          <legend id='A3GRB'><style id='A3GRB'><dir id='A3GRB'><q id='A3GRB'></q></dir></style></legend>
                            <tbody id='A3GRB'></tbody>
                        • <small id='A3GRB'></small><noframes id='A3GRB'>

                          • 主站蜘蛛池模板: www.887色视频免费 | 国内精品在线视频 | 九七午夜剧场福利写真 | 日韩一区二区三区视频 | 九七午夜剧场福利写真 | 凹凸日日摸日日碰夜夜 | jizz在线免费观看 | 成人国产精品久久久 | 91资源在线 | 久热国产精品视频 | 久久高清| 视频在线一区二区 | 在线天堂免费中文字幕视频 | 久久久久中文字幕 | 亚洲自拍偷拍视频 | 亚洲日本免费 | av男人的天堂在线 | 精品国产欧美 | 久久精品日产第一区二区三区 | 视频一区二区在线观看 | 午夜免费av| 81精品国产乱码久久久久久 | 日韩在线第一 | 在线看片国产 | 精品1区2区 | 亚洲精品乱码久久久久久按摩观 | 久久久久久高潮国产精品视 | 久久精品小视频 | 成年人视频在线免费观看 | 国产精品揄拍一区二区 | 久久精品青青大伊人av | 狠狠躁躁夜夜躁波多野结依 | 在线成人精品视频 | 欧美电影免费网站 | 久久99精品久久久久久 | 在线中文字幕第一页 | 九九九视频精品 | 久久久久久久91 | 91精品国产综合久久婷婷香蕉 | 欧美黄色网络 | 国产剧情一区 |