tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Adobati" <o.adob...@tin.it>
Subject Security Constraint - Tomcat 5.0
Date Sat, 02 Oct 2004 16:15:00 GMT
Goodmorning all,

Can I set a security constraint saying that i need to protect all except a directory or a
certain file?
My folder tree is quite like this one:
  myApp
   |
   + - - /images/
      |
      + - - /WEB-INF/
      |
      + -- *.jsp files

Well, what I need is to protect all, but to not protect the images folder. 
How can I do it?

Thisi is what i have in my web.xml file.

  <security-constraint>
    [...]
    <web-resource-collection>
      <web-resource-name>Banner Manager</web-resource-name>
      <url-pattern>/*</url-pattern>
        
      <http-method>DELETE</http-method>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
     </web-resource-collection>       
  </security-constraint>

regards,

Omar
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message