struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <peterlazaru...@gmail.com>
Subject Re: Using a CSS file
Date Mon, 07 Mar 2005 01:56:03 GMT
If I remember it correctly, <html:link/> tag is used to produce
anchor/hyperlink tag in html (i.e. <A> tag). What you need here is a
<link> tag or a style tag <tag>.

I would very much go with James' method.

- Peter

On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <jmitchell@apache.org> wrote:
> 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" <tim.christopher@gmail.com>
> 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 <hyrum@t-rmarket.com> 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: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

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


Mime
View raw message