| techlead_arun 2004-08-18, 2:53 am |
| I want to parse an XML file. I need to use a FileReader (JAVA)object for that, which will take the absolute path for the file name. Is it possible to specify the absolute filename without knowing the actual path in which websphere is installed and the actual name of the ear file.
Can i give a relative path? - like ../../xml/parse.xml
I dont think i can use the result of response.encodeURL() to pass it to the FileReader object. It is throwing a fileNotFoundException.
If there is no way to identify the path in which websphere is installed, can i define a system variable like how we do for JAVA_HOME or ANT_HOME and append it to my filename to obtain the absolute path?
Please pour in ur suggestions and ideas.
Thanks in advance
Arun |