Thanks to Tamas, if do like what you instruct me, what about Image resources? I couldn't access to view them if I use code in jsp file. Such as: <img src=""/> :(

The solution of Paul solved my problem :)


HTTP Status 404 - /auctionsystem/images/

--------------------------------------------------------------------------------

type Status report

message /auctionsystem/images/

description The requested resource (/auctionsystem/images/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/4.1.31

Thanks to you all :)

Pham
----- 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. You want to turn directory listings
off from the default servlet:

   <servlet>
       <servlet-name>default</servlet-name>
       <servlet-class>
         org.apache.catalina.servlets.DefaultServlet
       </servlet-class>
       <init-param>
           <param-name>debug</param-name>
           <param-value>0</param-value>
       </init-param>
       <init-param>
           <param-name>listings</param-name>
-->         <param-value>false</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
   </servlet>

God bless,
Paul




____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

0



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to