title: java:how to hide static resources like html ,images from user on jboss platfrom?
body: <p>I have developed a  java 1.4 web application.Application is deployed on jboss(tomcat).</p>
  
  <p>suppose my folder structure is </p>
  
  <pre><code>   mainfolder(contains subfolders and jsp pages)
          images(contains all of images files)
          headerfiles(header files)
          javascript(javascript files)
  </code></pre>
  
  <p>url for website login  page is</p>
  
  <pre><code>     mywebsite.com/mainfolder/login.jsp
  </code></pre>
  
  <p>if user  types complete url for some static resource</p>
  
  <pre><code>     mywebsite.com/mainfolder/images/myimage.jpeg
  </code></pre>
  
  <p>then he can view image on this url.</p>
  
  <p>I want to stop user to view these resources.What should i do?</p>
  
  <p>is there way some way to specigy pattern of file names which i dont want user to see.
  In that case i can specify *.ssi pattern to hide.</p>