In my webapplication, there is a directory JavaSource for my java classes and a directory WebContent for my .jsp and .xml files. I want to open one of the xml files in my Action class .
Until now I used the full path (C:/ .../project/WebContent/myXMLFile.xml to open this file. Having this url hardcoded in my java class is not the way I would like to keep it, so I was wondering how I could open this file without having to give a full path. When I just use "myXMLFile.xml", the java class looks on the directory of my editor instead of the web application
Until now I used the full path (C:/ .../project/WebContent/myXMLFile.xml to open this file. Having this url hardcoded in my java class is not the way I would like to keep it, so I was wondering how I could open this file without having to give a full path. When I just use "myXMLFile.xml", the java class looks on the directory of my editor instead of the web application