Hi. I am a student taking a class in JSP's and my current project is to use the jstl in a web-app tied into a database. I believe the problem I am having derives from getting a datasource.
my jsp code is: <sql:query var="stuff" dataSource="${dataSource}" >SELECT * FROM articles</sql:query> <c:out value="Query completed. Rows returned are: " /> <c:out value="$stuff.getSize()" /> I configured the dataSource as a class implementing the javax.sql.DataSource interface and use it in other places to create the database, but the above query always returns as if the 'stuff' variable is not initialized: "Query completed. Rows returned are:$stuff.getSize()" I create the dataSource during filter initialization and bind it to the context using the name "dataSource". I have been to the tutorial and read through all the documentation, but apparently missed the answer. Any help or advice - including where to look - would be greatly appreciated. TIA, Jim. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>