I get the recordSet by the SQL tag
I need print without "\n" but I like JSTL
I have try with this scritp:
<%
int max = ((javax.servlet.jsp.jstl.sql.Result)pageContext.findAttribute("elenco")).getRowCount();
for (int row = 0; row<= max; row++ ){
out.print(((javax.servlet.jsp.jstl.sql.Result)pageContext.findAttribute("elenco")).getRowsByIndex()[0][2] ) ;
out.print(row);
}
%>
it work fine but if I try change .getRowsByIndex()[0][2] with .getRowsByIndex()[row][2] I received this error:

JRun Servlet Error
500 7
7

I am shure that is a stupid question but are my first step in Java world.

Thanks Lorenzo Sicilia


--
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