隨筆-9  評論-168  文章-266  trackbacks-0

          <%
           ServletContext sc = request.getSession().getServletContext();
           ApplicationContext ac = WebApplicationContextUtils
             .getWebApplicationContext(sc);
           FourmService fs = (FourmService) ac.getBean("fourmService");
           String c = request.getParameter("command");
           if (c == null)
            return;
           if (c.equals("notDetail")) { //論壇概述調用

            out.print(fs.showfourm());
           } else if (c.equals("isDetail")) { //論壇詳細內容調用
            String title = request.getParameter("title");
            String identity = request.getParameter("identity");
            out.print(fs.showfourm(title, identity));
           } else if (c.equals("insert")) {
            String[] t = new String[4];
            t[0] = "title";//request.getParameter("title");
            t[1] = "底盤部門";//request.getParameter("identity");
            t[2] = "底盤作者";//request.getParameter("author");
            t[3] ="底盤詳細內容"; //request.getParameter("detail");
            
            fs.insertjson(t);
            out.print("{success:true,msg:'添加成功!'}");  //必須指定{success:true'},他傳回EXTJS調用成功,否則EXTJS卡住無法執行;如果沒有這行代碼即為報"SYNTAX ERROR:)"錯.他還能傳任意參數如MSG回EXTJS.
           }
          %>

          posted on 2008-09-02 16:57 紫蝶∏飛揚↗ 閱讀(2489) 評論(1)  編輯  收藏 所屬分類: EXTJS重點

          評論:
          # re: EXTJS 一般提交表單時, 出現奇怪的"SYNTAX ERROR: )"錯誤 2014-08-06 16:17 | 21
          ewe  回復  更多評論
            
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(5)

          隨筆檔案(9)

          文章分類(339)

          文章檔案(265)

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 简阳市| 钦州市| 盐亭县| 辽阳市| 鄂州市| 东安县| 巩义市| 元谋县| 磐石市| 米易县| 错那县| 香格里拉县| 涞源县| 星座| 克什克腾旗| 旬邑县| 建水县| 桃园县| 喀喇沁旗| 平原县| 潍坊市| 南丹县| 黄冈市| 鹿邑县| 乐安县| 灵丘县| 波密县| 安义县| 顺平县| 鹿邑县| 玛纳斯县| 万源市| 浮山县| 齐河县| 碌曲县| 改则县| 伊宁市| 吴桥县| 长汀县| 红安县| 朝阳市|