> I have a SQL query in an XSP (using the esql logicsheet) that 
> returns a record. If the query returns no record, it 
> currently returns an empty node set. I don't want it to do 
> that. Instead I want it to fail so execution stops there.
> What is the best (most efficient) way of doing this.
You can catch the empty resultset with the <esql:no-results> , here you
can throw an Exception (we are using for this cases the
ProcessingException).

Or you can use variables, and each time you do something, take a look at
that variable.

Zsombor
 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to