I want to read an XMl file that is placed somewhere in the web-root/WEB-INF/ folder in the deployed war on the server. How can I read the file from here by dynamically getting the complete file path??
Look at the api for the javax.servlet.ServletContext interface. With a ServletContext there are several possibilities - getResourceAsStream is popular or you can getRealPath to get an absolute path String. Bill