08-18-04 07:53 AM
I want to parse an XML file. I need to use a FileReader (JAVA)object for tha
t, which will take the absolute path for the file name. Is it possible to sp
ecify the absolute filename without knowing the actual path in which websphe
re 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 app
end it to my filename to obtain the absolute path?
Please pour in ur suggestions and ideas.
Thanks in advance
Arun
[ Post a follow-up to this message ]
|