Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Roger
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

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
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

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Martin Gainty
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

RE: Dynamic include of a CSS stylesheet

2008-09-03 Thread Dave Newton
--- 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

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Jeromy Evans
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

Re: Dynamic include of a CSS stylesheet

2008-09-03 Thread Chris Pratt
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

Re: Dynamic include of a CSS stylesheet

2008-09-02 Thread Jeromy Evans
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)

Dynamic include of a CSS stylesheet

2008-09-01 Thread Alexander Baetz
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