gogogo119

          tt99

           1     public void init(ServletConfig config) throws ServletException {
           2         try {
           3              String xmlPath = getServletContext().getRealPath("/")
           4                      + "\\WEB-INF\\classes\\components\\leadSQL.xml";
           5              SAXReader reader = new SAXReader();
           6              Document doc = reader.read(new File(xmlPath));
           7              String aicRegSQL = doc.valueOf("/config/SQL/@reg");
           8              AicConstant.setRegSQL(aicRegSQL);
           9              ...
          10             ..
          11             .
          12             
          13         }catch(DocumentException e){
          14             e.printStackTrace();
          15             throw new RuntimeException("系統(tǒng)啟動初試化失敗");
          16         }

          posted on 2009-08-17 11:26 消防員 閱讀(19) 評論(0)  編輯  收藏


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


          網(wǎng)站導航:
           

          My Links

          Blog Stats

          常用鏈接

          留言簿

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 南投县| 沂南县| 锡林浩特市| 射阳县| 万源市| 康平县| 长顺县| 霍州市| 开阳县| 宁晋县| 民县| 仁怀市| 长武县| 吉木乃县| 铁岭县| 寻乌县| 泌阳县| 方城县| 怀集县| 怀化市| 甘泉县| 财经| 曲周县| 格尔木市| 南充市| 安康市| 正阳县| 河北省| 石阡县| 扎赉特旗| 尼木县| 成都市| 肥西县| 基隆市| 厦门市| 金堂县| 渭源县| 宝山区| 岳阳县| 大姚县| 射阳县|