You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by James Mitchell <jm...@telocity.com> on 2002/06/26 17:53:13 UTC
New Tag
Hey James H.,
Are you aware of any stylesheet tags in the core?
One that will render a simple:
<link href="/myapp/stylesheets/blah.css" rel="stylesheet" type="text/css">
from something like this:
<util:styleSheet href="/stylesheets/blah.css"/>
To my knowledge there aren't any.
I wrote my own last year, and I'd like to submit it if there's not a similar
one.
It's 50 lines (including comments, but not license)
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: New Tag
Posted by Matt Raible <ma...@yahoo.com>.
Why not just replace:
<link href="/myapp/stylesheets/blah.css" rel="stylesheet" type="text/css">
with:
<link href='<html:rewrite page="/stylesheets/blah.css"/>' rel="stylesheet"
type="text/css">
I think this is a better way because then you can specify a global-forward in
strut-config and use "rewrite forward" if you want to allow someone to change
at any time (site-wide).
Also, what about this stylesheet syntax:
<style type="text/css" media="screen">
@import url(<html:rewrite page="/stylesheets/blah.css"/>);
</style>
My 2 cents,
Matt
--- James Holmes <jh...@yahoo.com> wrote:
> I'm not aware of anything that accomplishes what
> you're looking for, however, I've never gone looking
> for it either :)
>
> I would try looking at the JSTL stuff. Struts is
> headed that way.
>
> -james
> james@jamesholmes.com
> http://www.jamesholmes.com/struts/
>
> --- James Mitchell <jm...@telocity.com> wrote:
> > Hey James H.,
> >
> > Are you aware of any stylesheet tags in the core?
> >
> > One that will render a simple:
> > <link href="/myapp/stylesheets/blah.css"
> > rel="stylesheet" type="text/css">
> >
> > from something like this:
> > <util:styleSheet href="/stylesheets/blah.css"/>
> >
> > To my knowledge there aren't any.
> >
> > I wrote my own last year, and I'd like to submit it
> > if there's not a similar
> > one.
> > It's 50 lines (including comments, but not license)
> >
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://struts-atlanta.open-tools.org
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: New Tag
Posted by James Holmes <jh...@yahoo.com>.
I'm not aware of anything that accomplishes what
you're looking for, however, I've never gone looking
for it either :)
I would try looking at the JSTL stuff. Struts is
headed that way.
-james
james@jamesholmes.com
http://www.jamesholmes.com/struts/
--- James Mitchell <jm...@telocity.com> wrote:
> Hey James H.,
>
> Are you aware of any stylesheet tags in the core?
>
> One that will render a simple:
> <link href="/myapp/stylesheets/blah.css"
> rel="stylesheet" type="text/css">
>
> from something like this:
> <util:styleSheet href="/stylesheets/blah.css"/>
>
> To my knowledge there aren't any.
>
> I wrote my own last year, and I'd like to submit it
> if there's not a similar
> one.
> It's 50 lines (including comments, but not license)
>
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://struts-atlanta.open-tools.org
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>