struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger <roger.var...@googlemail.com>
Subject Re: Dynamic include of a CSS stylesheet
Date Wed, 03 Sep 2008 11:02:10 GMT
>
> I often use:
>
> <link type="text/css" rel="stylesheet" href="/css/main.css">
> <link type="text/css" rel="stylesheet"
> href="${pageContext.request.contextPath}/css/main.css">
> <link type="text/css" rel="stylesheet" href="${initParam.css}/main.css">
>
> where ${initParam.css} refers to an init param in web.xml (useful if it
> needs to change with the deployment, such as a version number)
>

Could you point me at some code examples on how to set this up. I've a need to 
load a different style sheet depending upon either the locale of the user, or 
a user selected locale.

Regards

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


Mime
View raw message