You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Melissa Matthews <me...@packexpo.com> on 2001/04/06 19:59:34 UTC

Problems with caching?

Does anyone know if there is a problem with regular HTML files being somehow
cached by Tomcat 3.2.1 on Solaris 2.8?   I have replaced 
some HTML header pages, but I still see the old ones.  I have searched and
can not find those files anywhere.  If I go 
directly to an shtml file that includes the HTML header files, it shows the
new header, but the JSP pages always show
the old headers.  I tried renaming the header to another name and then the
JSP page showed the new header.

I have deleted all of the pages from the work directory.

Any suggestions?  Thanks in advance.

Melissa

Re: Problems with caching?

Posted by Scott Tatum <sc...@wcom.com>.
Are you using the include file directive to include the files? If you
are, then that is the problem. JSP's won't recompile if a file they
include is updated, only if the jsp file itself is updated. There are
two ways to get around this:

1. Load the jsp file and save it (may have to add a space, remove it,
then save or something similar)
2. Use the touch command unix to update the timestamps on all your jsp
files. This will cause them all to recompile. (e.g. go to your dir with
the jsp's and do a "touch *.jsp") This might be preferable since you are
dealing with header includes.

Hope this helps.

-Scott

Melissa Matthews wrote:

>
>
> Does anyone know if there is a problem with regular HTML files being
> somehow cached by Tomcat 3.2.1 on Solaris 2.8?   I have replaced
>
> some HTML header pages, but I still see the old ones.  I have searched
> and can not find those files anywhere.  If I go
> directly to an shtml file that includes the HTML header files, it
> shows the new header, but the JSP pages always show
> the old headers.  I tried renaming the header to another name and then
> the JSP page showed the new header.
>
> I have deleted all of the pages from the work directory.
>
> Any suggestions?  Thanks in advance.
>
> Melissa

--
Scott Tatum | scott.tatum@wcom.com
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/