Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
oh, hi d :) If you could, plz show me how to restrict by Servlet-Filter. thanks to you Pham - Original Message - From: d d [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 02, 2005 12:32 PM Subject: Re: [HELP] How can deny access to folders

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Tremal Nailk
2005/8/2, Paul Benedict [EMAIL PROTECTED]: init-param param-namelistings/param-name -- param-valuefalse/param-value /init-param I think it's useful, but it doesn't work for Strut's ActionServlet. Is there an easy equivalent for it, beside using filters?

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
Tremal, you said: it doesn't work for Strut's ActionServlet, what you mean ? - Original Message - From: Tremal Nailk [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 02, 2005 3:30 PM Subject: Re: [HELP] How can deny access to folders at web

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Tremal Nailk
2005/8/2, Pham Anh Tuan [EMAIL PROTECTED]: Tremal, you said: it doesn't work for Strut's ActionServlet, what you mean ? I mean, Paul's example is valid for Catalina DefaultServlet: servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class as you can see here:

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
Subject: Re: [HELP] How can deny access to folders at web app root 2005/8/2, Pham Anh Tuan [EMAIL PROTECTED]: Tremal, you said: it doesn't work for Strut's ActionServlet, what you mean ? I mean, Paul's example is valid for Catalina DefaultServlet: servlet-class

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Tremal Nailk
2005/8/2, Pham Anh Tuan [EMAIL PROTECTED]: oh, I use servlet-classorg.apache.struts.action.ActionServlet/servlet-class too, everything runs okie :) yes, you're right, I misunderstood Paul's mail. Now it's working for me too :) thanks -- TREMALNAIK

[HELP] How can deny access to folders at web app root

2005-08-01 Thread Pham Anh Tuan
Hi all :) I use Tomcat and Struts framework to build my web app. I lay jsp document file at web app root.Such as cart and user. something like: /cart /user /WEB-INF/ When I run my web app, I could access /webapp/cart folder and /webapp/user folder from browser. All files in 2 folders

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread Tamas Szabo
Hi, Pham Anh Tuan wrote: Hi all :) I use Tomcat and Struts framework to build my web app. I lay jsp document file at web app root.Such as cart and user. something like: /cart /user /WEB-INF/ When I run my web app, I could access /webapp/cart folder and /webapp/user folder from

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread Paul Benedict
Pham, Go into your Tomcat/conf directory and edit the default web.xml. You want to turn directory listings off from the default servlet: servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread Pham Anh Tuan
- Original Message - From: Paul Benedict [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 02, 2005 11:17 AM Subject: Re: [HELP] How can deny access to folders at web app root Pham, Go into your Tomcat/conf directory and edit the default web.xml

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread d d
  hi Pham , If u r clear with the concepts of Srevlets..u can use Servlet-Filters to ristrict access to perticular folders on ur application. Another way is to Use Tomcat configuration to whether show user the Directory list. See if this helps u out. Best Luck On Tue, 02 Aug 2005 Pham Anh Tuan