struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lipscombe" <>
Subject RE: technique to show a preview of the image
Date Tue, 31 May 2005 16:26:09 GMT

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

We tried putting the styles in another JSP then using <%@include ....> 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:
For additional commands, e-mail:

View raw message