Hey!
I'm surprised but it worked! CSS is the way to go. Now I wonder how
Netscrape will render it?
Thanks,
Stefan
----- Original Message -----
From: "Gideon, Thomas" <[EMAIL PROTECTED]>
To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 4:17 PM
Subject: RE: JSTL making Dreamweaver unhappy.
> You might try doing this with CSS, instead, depending on Dreamweaver's
level
> of support for it.
>
> <c:choose>
> <c:when test="${status.count % 2 == 0}">
> <c:set var="bgColor" value="transparent"/>
> </c:when>
> <c:when test="${status.count % 2 != 0}">
> <c:set var="bgColor" value="#ccc"/>
> </c:when>
> </c:choose>
> <tr style="background-color: <c:out value='${bgColor}'/>;" align="center">
>
> Then your JSTL tag is embedded inside of an attribute value under both
> circumstances where presumably Dreamweaver will just ignore it.
>
> Thomas Gideon
> Sr. Software Developer
> B2eMarkets
>
> 301.230.2236 Tel.
> 301.230.2248 Fax.
> [EMAIL PROTECTED]
> www.B2eMarkets.com
>
>
>
> > -----Original Message-----
> > From: Stefan [mailto:nickm@;studioweb.com]
> > Sent: Tuesday, October 29, 2002 4:10 PM
> > To: Tag Libraries Users List
> > Subject: Re: JSTL making Dreamweaver unhappy.
> >
> >
> > I actually use JSTL to write the attribute and value with the tag for
> > display purposes. If I insert bgColor has a blank value the
> > browser will
> > render in black. So if you want altenating rows to be
> > transparent (default )
> > you need to not have the attribute in the tag at all:
> >
> > <c:choose>
> > <c:when test="${status.count % 2 == 0}">
> > <c:set var="bgColor" value=" "/>
> > </c:when>
> > <c:when test="${status.count % 2 != 0}">
> > <c:set var="bgColor" value="bgColor=#CCCCCC"/>
> > </c:when>
> > </c:choose>
> > <tr <c:out value='${bgColor}'/> align="center">
> >
> > Thanks anyway,
> >
> > Stef
> >
> >
> >
> > ----- Original Message -----
> > From: "Karr, David" <[EMAIL PROTECTED]>
> > To: "'Tag Libraries Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 29, 2002 4:00 PM
> > Subject: RE: JSTL making Dreamweaver unhappy.
> >
> >
> > > It might be because you're missing the attribute name and
> > "=". You're
> > just
> > > inserting the value of "${bgColor}" inside the "tr" tag,
> > without it being
> > a
> > > value of an attribute.
> > >
> > > > -----Original Message-----
> > > > From: Stefan [mailto:nickm@;studioweb.com]
> > > > Sent: Tuesday, October 29, 2002 12:55 PM
> > > > To: Tag Libraries Users List
> > > > Subject: JSTL making Dreamweaver unhappy.
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Just started to use JSTL and find that DreamWeaver MX has
> > > > problem with the tags in the design view. For example this:
> > > >
> > > > <tr <c:out value='${bgColor}'/> align="center">
> > > >
> > > > Will cause DW to display a broken tr tag: <tr
> > > >
> > > > And dreamweaver's info panel says it's invalid markup. This
> > > > is fine for me but I can see web designers crying about this.
> > > > Any suggestions?
> > > >
> > > > Funny thing is that <%= %> are handled fine by DW.
> > > >
> > > > Stef
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:taglibs-user-help@;jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:taglibs-user-help@;jakarta.apache.org>
> >
>
> --
> To unsubscribe, e-mail:
<mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:taglibs-user-help@;jakarta.apache.org>
>
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>