I try to catch my exceptions with <esql:error-results/> but this won't work?
How to use it the right way?

<esql:connection>
   <esql:pool>DBpoolName</esql:pool>
   <esql:execute-query>
    <esql:query>...</esql:query>
    <esql:results>
          <esql:row-results>
              <allowed/>
          </esql:row-results>
    </esql:results>
    <esql:no-results>
          <forbidden/>
    </esql:no-results>
    <!-- Is this the right Syntax?-->
    <esql:error-results>
        <esql:get-message/>
    </esql:error-result>
   </esql:execute-query>
  </esql:connection>

When an SQL exception occurs I get always a Error creating the resource
message from Cocoon,
but I want to display my own error message.

Thank you for your time,
Martin


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to