struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al Sutton <al.sut...@alsutton.com>
Subject Re: Dynamic include of a CSS stylesheet
Date Wed, 03 Sep 2008 13:29:06 GMT
Any reason not to use;

<link type="text/css" rel="stylesheet" href="<s:url value='/css/main.css'/>">

or did I miss something?

Al.


Dave Newton wrote:
> --- On Wed, 9/3/08, Martin Gainty wrote:
>   
>> <s:if test="${pageContext.request.contextPath}">
>>     
>
> I'd be worried if that test failed.
>
>   
>>     <link type="text/css" rel="stylesheet"
>>           href="${pageContext.request.contextPath}/css/main.css">
>>     
>
> </s:if>
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   


-- 
Al Sutton

W: www.alsutton.com
B: alsutton.wordpress.com
T: twitter.com/alsutton


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message