jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21608] New: - getColumn tag not compatible with JSTL iterator forEach for position parameter
Date Tue, 15 Jul 2003 14:27:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21608>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21608

getColumn tag not compatible with JSTL iterator forEach for position parameter

           Summary: getColumn tag not compatible with JSTL iterator forEach
                    for position parameter
           Product: Taglibs
           Version: 1.0B1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DBTags Taglib
        AssignedTo: taglibs-dev@jakarta.apache.org
        ReportedBy: mitchwinkle@yahoo.com


Not sure if this is an issue or is supposed to work this way, but here goes.

Working with DBTags 1.0B1 on Tomcat 4.1.18.

When processing each row of a result set, I attempted to use the JSTL c:forEach
iterator with getColumn tag in order to iterate over a number of columns which
all were output the same way.  For example:

<tr>
<c:forEach var="x" begin="3" end="9">
<td>
<sql:getColumn position="${x}"/>
</td>
</c:forEach>
</tr>

This causes a situation where the page will not compile with a Java error of
"NumberFormatException ${x}"

Must the position attribute be a literal???  Obviously, this is not a
show-stopper, but makes for a lot of extra typing :-)

Mitch

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message