Mike Steigerwald wrote:
Can anyone help me find the error in this syntax:

<sql:query var="productQuery" dataSource="${productDS}">
SELECT * FROM Contacts
</sql:query>

All I get for output is the raw text: SELECT * FROM Contacts

I've read and re-read the docs. I copied this example from the
tutorials.

What am I missing?

Most likely you do not declare the JSTL SQL library in this page. If you do a View Source in the browser, I'm pretty sure you see the <sql:query> element unprocessed.

Hans
--
Hans Bergsten                                <[EMAIL PROTECTED]>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to