Re: Preventing access to directories?

2009-07-23 Thread André Warnier
Andre-John Mas wrote: On 22-Jul-2009, at 22:36, Hassan Schroeder wrote: On Wed, Jul 22, 2009 at 5:23 PM, Andre-John Masandrejohn@gmail.com wrote: I want to ensure that someone typing: http://../webapp/module/jsp/abc.jsp won't be able to access the resource. I know I could put

Preventing access to directories?

2009-07-22 Thread Andre-John Mas
Hi, If I create a folder in the base of my web application, for example: webapp/mydir can I prevent access to it? What I am wanting to do it create modules within my web application that contain the associated components: webapp/ module/ js/ css/ jsp/

RE: Preventing access to directories?

2009-07-22 Thread Caldarale, Charles R
From: Andre-John Mas [mailto:andrejohn@gmail.com] Subject: Preventing access to directories? I know I could put the JSPs in WEB-INF (it is what I do now), though I am wanting to explore another way of organising and grouping related resource, for easier management. Since protection

Re: Preventing access to directories?

2009-07-22 Thread Hassan Schroeder
On Wed, Jul 22, 2009 at 5:23 PM, Andre-John Masandrejohn@gmail.com wrote: I want to ensure that someone typing:   http://../webapp/module/jsp/abc.jsp won't be able to access the resource. I know I could put the JSPs in WEB-INF (it is what I do now), though I am wanting to explore

Re: Preventing access to directories?

2009-07-22 Thread Andre-John Mas
On 22-Jul-2009, at 22:36, Hassan Schroeder wrote: On Wed, Jul 22, 2009 at 5:23 PM, Andre-John Masandrejohn@gmail.com wrote: I want to ensure that someone typing: http://../webapp/module/jsp/abc.jsp won't be able to access the resource. I know I could put the JSPs in WEB-INF

Re: Preventing access to directories?

2009-07-22 Thread lanxiazhi
Here is one alternative: use a servlet that will handle all the illegal accessed files by define corresponding servlet-mapping in web.xml. eg.mapping ErrorServlet to /code dir,and return error code SC_FORBIDDEN (403). 2009/7/23 Andre-John Mas aj...@sympatico.ca On 22-Jul-2009, at 22:36, Hassan

Re: Preventing access to directories?

2009-07-22 Thread Andre-John Mas
On 22-Jul-2009, at 20:23, Andre-John Mas wrote: Hi, If I create a folder in the base of my web application, for example: webapp/mydir can I prevent access to it? What I am wanting to do it create modules within my web application that contain the associated components: webapp/