I ran into the same problem and ended up building the entire sql statement in a String variable within an <xsp:logic> block.
When you did this, where you also using the <esql:parameter> tags to bind parameters? If you were, it sounds like many people would be interested in seeing the example.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]