cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: ESQL:ERROR-RESULTS
Date Sun, 26 Nov 2000 20:15:01 GMT
On Sun, 26 Nov 2000, dada wrote:

> Donald Ball wrote:
> 
> > if you include an esql:error-results element, any SQLExceptions that are
> > thrown while executing a query or accessing its results will be caught
> > there and your error-results section will be instantiated. esql makes no
> > attempt to catch any other exceptions, and if you include no error-results
> > sections, even SQLExceptions will be tossed upwards. if you want your page
> > to do fancier error processing, simply enclose the relevant sections of
> > your esql elements with try/catch blocks.
> >
> 
> How to do it ?

something like this:

<xsp:logic>
  try {
    <esql:connection>
      ...
    </esql:connection>
  } catch (MyException e) {
    ...
  } catch (MyOtherException e) {
    ...
  }
</xsp:logic>

- donald


Mime
View raw message