當(dāng)幸福來敲門

          我就會牢牢抓住!
          隨筆 - 50, 文章 - 3, 評論 - 8, 引用 - 0
          數(shù)據(jù)加載中……

          2013-03-13 項目開發(fā) 總結(jié) 連載記錄

          1.針對不同類型跳轉(zhuǎn)不同的action方法 除了使用JS以外  還可以 使用參數(shù)獲得參數(shù)例如method=....不同值來跳轉(zhuǎn)像不同的方法
          例子:分國別 (method="showCountryList")  分地區(qū)(method="showAreaList")  
                  后臺 String method = request.getParameter("method");
                       request.setAttribute("method", method);
              if (method != null && method.equals("showCountryList")) {
               return showCountryList(map, form, request, response);//分國別
             } else if (method != null && method.equals("showAreaList")) {
               return showAreaList(map, form, request, response);//分地區(qū)
             }
          2.Jsp........記得使用IFram嵌套
          <iframe width="100%" height="800" class="share_self"  frameborder="0" scrolling="no" src="/tyreportAction.do?method=lookReportInfo&bid=${record.bid } "></iframe>
           總結(jié):思維要活躍些  往往一個問題有很多種解決方法的

          posted on 2013-03-13 09:38 wyx 閱讀(183) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 琼中| 喜德县| 文化| 临朐县| 永丰县| 青浦区| 玉树县| 遂川县| 米易县| 林芝县| 辛集市| 夏邑县| 叙永县| 哈巴河县| 惠安县| 长寿区| 九江市| 赣榆县| 武平县| 承德县| 香河县| 错那县| 香格里拉县| 阿克苏市| 泾源县| 塔城市| 田阳县| 舒兰市| 平安县| 蒙阴县| 双辽市| 丰镇市| 张掖市| 齐齐哈尔市| 闸北区| 汝城县| 隆昌县| 玉树县| 阿合奇县| 通化县| 通州市|