Thank you, James.  Your solution works, and was easiest to implement.  I
really appreciate everyone's attention to my little problem.  Hope I can
return the favor sometime.

Hyrum

-----Original Message-----
From: James Mitchell [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 05, 2005 9:57 PM
To: Struts Users Mailing List; Tim Christopher
Subject: Re: Using a CSS file

I prefer this method better:

 <style type="text/css" media="screen">
  @import url(<html:rewrite page="/stylesheets/foo.css" />);
 </style>



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message ----- 
From: "Tim Christopher" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, March 04, 2005 11:43 PM
Subject: Re: Using a CSS file


>>> <html:link style="cssStyle" href="/include/filename.css" />
>
> Off the top of my head I don't remember style being an attribute for
> the html:link tag...  I'd recommend you included a 'cssStyle' global
> forward in your Struts config file then use something like:
>
> JSP:
> <link rel="stylesheet" type="text/css" href="<html:rewrite
> forward='cssStyle'/>"/>
>
> Struts-config.xml:
>  <global-forwards>
>    <forward name="cssStyle" path="/assets/styles/filename.css"/>
>  </global-forwards>
>
> Tim Christopher
>
> On Fri, 4 Mar 2005 16:16:33 -0700, Hyrum <[EMAIL PROTECTED]> wrote:
>> I can't get my struts application to recognize my Style Sheet.  Here is 
>> the
>> link I am using:
>>
>> <html:link style="cssStyle" href="/include/filename.css" />
>>
>> My filename.css is simple:
>>
>> a.menu
>> {
>>        font-size: 115%;
>>        text-decoration: none;
>>        color: Brown
>> }
>>
>> I'm trying to use the css to create a style for some menu links.  It 
>> works
>> if I use the <style> tags within the jsp, but if I use the <html:link> 
>> tag,
>> it doesn't see it.  What am I doing wrong??
>>
>> Hyrum Ward
>> Software Developer
>> T&R Tax Services
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to