I've answered my own question!!!!

The order of the xml elements in the web.xml file is very important!!!!

-----Original Message-----
From: Herbison, Daniel [NASHF:T830:EXCH] 
Sent: Friday, August 08, 2003 5:49 PM
To: '[EMAIL PROTECTED]'
Subject: jstl/sql


I'm trying to use the sql tag in a simple jsp.  The sql tag seems to be
ignored!  I can see the query, below, on the web-page and the entire <sql...
sequence is in the html source.  Anyone know what I'm doing wrong?
 
My web.xml has this in it:
 
 <resource-ref>
  <description>COIDW Oracle Datasource</description>
  <res-ref-name>jdbc/coidw</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
 </resource-ref>
 
 <taglib>
  <taglib-uri> http://java.sun.com/jstl/sql <http://java.sun.com/jstl/sql>
</taglib-uri>
  <taglib-location>/WEB-INF/taglibs/sql.tld</taglib-location>
 </taglib>
 
 <taglib>
  <taglib-uri> http://java.sun.com/jstl/core <http://java.sun.com/jstl/core>
</taglib-uri>
  <taglib-location>/WEB-INF/taglibs/c.tld</taglib-location>
 </taglib>
 
And my jsp page has this:
 
<sql:query var='userQuery' dataSource='jdbc/coidw'>
 SELECT * FROM app_user
</sql:query>


Reply via email to