title: Display files present in a folder in front end
body: <p>I have web app with middle tier in Java, front end in JS, angular. </p>
  
  <p>Inside my war file the folder structure looks like:</p>
  
  <pre><code>myApp.war/css
  myApp.war/images
  myApp.war/js
  myApp.war/files
  </code></pre>
  
  <p>files folder looks like:</p>
  
  <pre><code>myApp.war/files/file1.txt
  myApp.war/files/file2.txt
  </code></pre>
  
  <p>Now in my app I have a button show files. Here I want to provide links to all the files present in files folder.</p>
  
  <p>I am able to access file1.txt and file2.txt like this:</p>
  
  <pre><code>http://myserver.com:1225/myApp/files/file1.txt
  http://myserver.com:1225/myApp/files/file2.txt
  </code></pre>
  
  <p>I can create links in my html and I will be done but the problem is those file names will change dynamically. So I can't guess how many files are present in files folder and their names.</p>
  
  <p>So, wondering if I can display all files present in files folder with links.</p>
  
  <p>I am getting <strong>Error 404: SRVE0190E: File not found</strong> when I access <strong><a href="http://myserver.com:1225/myApp/files/" rel="nofollow">http://myserver.com:1225/myApp/files/</a></strong></p>
  
  <p>Any thoughts</p>