Hi James, thank you very much, it works fine.
Thanks again
>From: James Klicman <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: syntax error ?????
>Date: Mon, 16 Apr 2001 13:18:34 -0700
>
>Hi Sufi,
>
>The problem is that you can't use a <jsp:tag/> inside a <% scriptlet %>.
>
>If you are going to use the scriptlet approach, you need to access the
>result set directly.
>
>From browsing the JDBC taglib documentation, I think the following should
>work:
><% if
>("yes".equals(((java.sql.ResultSet)pageContext.getAttribute("rset1")).getString(6)))
>{ %>
>
>The more comprehendable <% if ("yes".equals(rset1.getString(6))) { %>,
>might work as well.
>
>-James
>
>On Mon, Apr 16, 2001 at 07:28:36PM -0000, sufi malak wrote:
> > I am using the jdbc taglib, it's working fine, but I have a syntax error
>in
> > this line :
> > <% if (<sql:getColumn position="6"/> == "yes" { %>
> > Could you please show me why the above line is wrong ??
> >
> > this is a peace of code :
> > <sql:resultSet id="rset1">
> > <pg:item>
> > <tr bgcolor="#eeeeff">
> > <td> <sql:getColumn position="1"/></td>
> > <td><sql:getColumn position="2"/></td>
> > <td><sql:getColumn position="3"/></td>
> > <td><sql:getColumn position="4"/></td>
> > <td><sql:getColumn position="5"/></td>
> > <% if (<sql:getColumn position="6"/> == "yes" { %>
> > <td><IMG SRC= ./images/form.gif></td>
> > <% } else %>
> > <td><IMG SRC= ./images/fax.gif></td>
> > </tr>
> > </pg:item>
> > </sql:resultSet>
> >
> > Thanks lot
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets