Adam-

You need to set no cache for the html pages/images on the client's side
so put this right after the Browser client's <head> tag
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

Using the struts-way your web.xml could look like
<filter-mapping>
   <filter-name>CacheFilter</filter-name>
   <url-pattern>*.jsp</url-pattern>
   <init-param>
     <param-name>/Whatever.jsp</param-name>
     <param-value>nocache</param-value>
   </init-param>
   <init-param>
     <param-name>cacheTimeout</param-name>
     <param-value>1</param-value>
   </init-param>
 </filter-mapping>
Documentation for setting up a cache filter can be viewed at
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=last

HTH
Martin-
"The stupid question is the one that is unasked"

----- Original Message ----- From: "Adam Lipscombe" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, May 31, 2005 12:27 PM
Subject: Linking to Stylesheets


Folks,


Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. <link
rel="stylesheet" href="pages/calendar/calendar.css">


The graphic designers are complaining 'cos on-the-fly changes made in a
stylesheet does not automatically force a JSP to get re-compiled by Tomcat
5.0.28. This means they cant see their changes unless they restart TC.

Q: Is there any way to tell TC to re-compile JSP's when a stylesheet has
changed?




We tried putting the styles in another JSP then using <[EMAIL PROTECTED] ....> 
to
embed them in each page.
This didn't work because some of the styles have hard-coded relative paths
in them e.g. "url(../images/b_PEC_request.jpg);"

The path was interpreted as relative to the main page rather than to the
included JSP that holds the stylesheets. So the images were not found.


Q: What is the standard approach for this?



TIA - Adam






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


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

Reply via email to