Ok, then I'd try putting single quotes around the 0 in the test. It may be need
to treat it as a char/string.
--- [EMAIL PROTECTED] wrote:
> yeah..sorry that was a typo while sending this mail but I do have the
> closing curly braces } in my code.
>
>
> On 6/28/05, Jay Bose <[EMAIL PROTECTED]> wrote:
> > Are you missing a } in the following stmt?
> >
> > <display:table name="${row.rows" id="row1">
> >
> > Shouldn't it be:
> >
> > <display:table name="${row.rows}" id="row1">
> >
> > --- [EMAIL PROTECTED] wrote:
> >
> > > I have an sql statement
> > > <sql:query dataSource="" var="row" >
> > > SELECT col, col2, col3 from table
> > > </sql:query>
> > >
> > > <display:table name="${row.rows" id="row1"/>
> > > and it displays the information below.
> > >
> > > col col2 col3
> > > 2 7 0
> > > 5 6 2
> > >
> > > BUT when I do this:
> > >
> > > <display:table name="${row.rows" id="row1">
> > > <c:if test=${col3 != 0}">
> > > <display:column property="col"/>
> > > <display:column property="col2"/>
> > > <display:column property="col3"/>
> > > </c:if>
> > > </display:table>
> > >
> > > This displays a table with col, col2 and col3 like so
> > >
> > > col col2 col3
> > > 2 7 0
> > > 1 6 2
> > >
> > >
> > > Shouldnt it display just this?
> > >
> > > col col2 col3
> > > 1 6 2
> > >
> > > It works when I do it with a <c:forEach> statement without the
> > > <display:table>.
> > > Please help me, What am I doing wrong?
> > >
> > > thanks
Respectfully,
Onyeje "Jay" Bose
http://www.jaybose.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user