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("系统启动初试化失败");
16         }

posted on 2009-08-17 11:26 消防员 阅读(15) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

My Links

Blog Stats

常用链接

留言簿

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜