You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mariela Schafer <Ma...@siemens-itron.com.ar> on 2002/06/14 17:02:52 UTC

Expiring a page on Apache/Tomcat

Hi All,
I am trying to expire a page on Tomcat Apache In my JSP code I have set this
up 
<% response.setDateHeader ("Expires", 0);
 response.setHeader("Pragma", "no-cache"); 
response.setHeader("Cache-Control", "no-store");
 response.setDateHeader("max-age", 0); 
response.setDateHeader("Expires", 0); %> 
 But when I run it on Apache/Tomcat it does not work. Why ??

Mariela




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: listing directories in tomcat

Posted by Holger Klein-Altstedde <ho...@prioeins.de>.
Which Version?
In TC4 you have an entry in the web.xml in your conf dir.

    <init-param>
      <param-name>listings</param-name>
      <param-value>true</param-value>
    </init-param>

Set this value to false.
That's it.


-----Ursprüngliche Nachricht-----
Von: Carlos [mailto:linux@lpis.com] 
Gesendet: Freitag, 14. Juni 2002 17:08
An: Tomcat Users List
Betreff: listing directories in tomcat


how can i forbid the directories listing in tomcat?
thanks



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


listing directories in tomcat

Posted by Carlos <li...@lpis.com>.
how can i forbid the directories listing in tomcat?
thanks



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>