title: Dynamically add .xhtml file in webapp folder
body: <p>I want to dynamically add new <code>.xhtml</code> files in the webapp folder of my project.
  It only works when i give the full path like,</p>
  
  <pre><code>FileWriter fw = new FileWriter("D:/projects/UIBindingExample/src/main/webapp/pagefour.xhtml");
              fw.write("&lt;html&gt;...some code....&lt;/html&gt;");
  
              fw.close();
  </code></pre>
  
  <p>instead of this  i want to get it work using the relative path of the file like,</p>
  
  <pre><code>src/main/webapp/pagefour.xhtml
  </code></pre>
  
  <p>i tried this.but its not working .!!!
  what should i do?
  Thanks in adv. </p>