[JBoss-user] [HTTPD, Servlets & JSP] - Re: XML Parser cannot parse Files with spaces in their names

2004-08-05 Thread vc?!
Yes, even if i try File f = new File("C:\\jboss-3.2.4\\server\\default\\deploy\\cm.ear\\cm.war\\htm\\Rep\\Gland 5.xml"); boolean b = f.exists(); System.out.println("EXISTS" + b); Document oDocument = dBuilder.parse(f); I still get a problem. In the

[JBoss-user] [HTTPD, Servlets & JSP] - XML Parser cannot parse Files with spaces in their names

2004-08-05 Thread vc?!
Here is my jsp code <%@ page import="java.net.URLDecoder,org.w3c.dom.Document,java.io.*,javax.xml.parsers.DocumentBuilder, javax.xml.parsers.DocumentBuilderFactory" %> <% try { //create a factory instance DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newI

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Accessing files from Servlets or Classes

2004-07-13 Thread vc?!
The actual code which tries to load the properties file is: InputStream in = ClassLoader.getSystemResourceAsStream("dbpool.properties"); Properties props = new Properties(); props.load( new BufferedInputStream( in ) ); return props View the original post : http://www.jbo

[JBoss-user] [HTTPD, Servlets & JSP] - Accessing files from Servlets or Classes

2004-07-13 Thread vc?!
I have the following code in one of my java files. public class DBHelper { static{ try { Properties props = PropertyReader.getProps("\dbpool.properties"); conMgr = } catch(Exception e ) {