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
Roger wrote:
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
does
not necessarily endorse content contained within this transmission.
From: [EMAIL PROTECTED]
To: user@struts.apache.org
Subject: Re: Dynamic include of a CSS stylesheet
Date: Wed, 3 Sep 2008 14:02:10 +0300
I often use:
link type=text/css rel=stylesheet href=/css/main.css
link
--- 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
Al Sutton wrote:
Any reason not to use;
link type=text/css rel=stylesheet href=s:url
value='/css/main.css'/
or did I miss something?
Al.
That had never occurred to me!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
PROTECTED]
To: user@struts.apache.org
Subject: Re: Dynamic include of a CSS stylesheet
Date: Wed, 3 Sep 2008 14:02:10 +0300
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
Alexander Baetz wrote:
Hi,
ok, this is not really a struts question but we came to it while
creating tiles pages. it might be that i'm thinking wrong.
scenario:
in writing a tiles template. there i want to include an external
stylesheet x. when an action (domain/namespace/myAction.action)
Hi,
ok, this is not really a struts question but we came to it while
creating tiles pages. it might be that i'm thinking wrong.
scenario:
in writing a tiles template. there i want to include an external
stylesheet x. when an action (domain/namespace/myAction.action) is
executed the result
8 matches
Mail list logo