隨筆-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 紫蝶∏飛揚↗ 閱讀(2493) 評論(1)  編輯  收藏 所屬分類: EXTJS重點

          評論:
          # re: EXTJS 一般提交表單時, 出現奇怪的"SYNTAX ERROR: )"錯誤 2014-08-06 16:17 | 21
          ewe  回復  更多評論
            
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(5)

          隨筆檔案(9)

          文章分類(339)

          文章檔案(265)

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 惠州市| 荥阳市| 鹤庆县| 诸暨市| 江阴市| 阜康市| 中江县| 三河市| 微山县| 杂多县| 洮南市| 启东市| 简阳市| 宾川县| 灵山县| 贡嘎县| 白沙| 兴安盟| 集安市| 仙游县| 定远县| 乳山市| 浦县| 安庆市| 墨脱县| 如皋市| 榕江县| 绩溪县| 会宁县| 赤水市| 同心县| 仁寿县| 鄂托克前旗| 乌拉特后旗| 阳原县| 思茅市| 都安| 泰来县| 文昌市| 和硕县| 西乌珠穆沁旗|