Hi all,

I have a few ESQL XSP pages where there is the potential for
the query to not generate any results.  In those cases, I would
like to throw a ResourceNotFoundException and let my error
handling (defined in the sitemap) take over and generate a 404
back to the client.  Is this a sensible thing to do and, if so,
how do I import ResourceNotFoundException into the context
of the XSP so I can write something like:

  <esql:no-results>
    <xsp:logic>
      throw new ResourceNotFoundException("bla bla");
    </xsp:logic>
  </esql:no-results>

Thanks, Jonathan

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

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

Reply via email to