title: showning images that are not stocked in web content - Glassfish 4
body: <p>Hi I'm working on Glassfish 4, Java EE7. I want to show my images that I had saved in a folder named "Uploaded"  like this </p>
  
  <pre><code>                &lt;image src="/uploads/image1.png" /&gt;
  </code></pre>
  
  <p>when I was working on tomcat7 I was changing the conf/server.xml by adding this line under the <code>&lt;host&gt;</code> </p>
  
  <pre><code>&lt;Context docBase="c:/uploads" path="/uploads" /&gt;
  </code></pre>
  
  <p>I found that on Glassfish 3, the equivalent is to add an alternatedocroot to the glassfish-web.xml like this:</p>
  
  <pre><code>&lt;property name="alternatedocroot_1" value="from=/uploads/* dir=/c:/uploads" /&gt;
  </code></pre>
  
  <p>It didn't work for me on Glassfish 4 and I am wondering why this have changed in GF4.</p>
  
  <p>I want to add the folder as a "virtual context" of the servletcontainer... Please if any one have idea.  <img src="https://i.stack.imgur.com/AsKKy.png" alt="enter image description here"></p>