IDE:netbeans5
是这样的,我有个配置文件config.xml
里面记录了一些信息,然后我想在某个javabean里固定的读这个文件,现在不知道把这个文件放什么位置了,我给大家看一下我现在的文件结构,
<img src="http://img.blog.163.com/photo/FTrjKNlvN3ICejfu_UISiQ==/1718404732818661560.jpg"/>
我现在把这个文件放在web目录下.但是老是提示
D:\Program Files\netbeans5\enterprise2\jakarta-tomcat-5.5.9\bin\config.xml (系统找不到指定的文件。)  
(!!不要告诉我要我把这个配置文件放到那个位置去啊,那就脱离了那个web应用了吧!!)
对了,语句是这样写的
       //创建解析器工厂
       DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); 
       //创建自动获得的解析器
       DocumentBuilder db = dbf.newDocumentBuilder();  
       //装载一个xml文件过来
       Document doc=null; 
       doc = (Document)db.parse("config.xml");  //这里的路径我真的不知道写哪里好,????????????????????????????