當幸福來敲門

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

          2013-03-13 項目開發 總結 連載記錄

          1.針對不同類型跳轉不同的action方法 除了使用JS以外  還可以 使用參數獲得參數例如method=....不同值來跳轉像不同的方法
          例子:分國別 (method="showCountryList")  分地區(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);//分地區
             }
          2.Jsp........記得使用IFram嵌套
          <iframe width="100%" height="800" class="share_self"  frameborder="0" scrolling="no" src="/tyreportAction.do?method=lookReportInfo&bid=${record.bid } "></iframe>
           總結:思維要活躍些  往往一個問題有很多種解決方法的

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


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


          網站導航:
           
          主站蜘蛛池模板: 凤凰县| 青铜峡市| 台前县| 青浦区| 屏东市| 宁南县| 定陶县| 苗栗县| 绥棱县| 西昌市| 和政县| 东阳市| 从化市| 图木舒克市| 江西省| 唐河县| 襄城县| 长泰县| 竹溪县| 明水县| 呼图壁县| 科尔| 民权县| 大同县| 榆林市| 德保县| 营口市| 页游| 托克逊县| 民乐县| 巨野县| 霍州市| 茶陵县| 申扎县| 保德县| 浠水县| 微博| 普兰店市| 五莲县| 涟源市| 琼海市|