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>

Reply via email to