You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Lorenzo Sicilia <ar...@kemen.it> on 2002/10/30 19:33:19 UTC

jstl and jsp

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>