title: Access file in WebContent folder from a servlet
body: <p>I'm trying to generate a PDF document using FOP. The pdf generation code is kept in a servlet and the xsl is in a specific folder in the WebContent folder. </p>
  
  <p>How can I access this xsl file by giving a relative path? It works only if I give the complete path in the File object.</p>
  
  <p>I need to generate the xml content dynamically. How can I give this dynamically generated xml as the source instead of a File object?</p>
  
  <p>Please provide your suggestions.</p>