cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Layes <j.coc...@layes.com>
Subject Generating a 404 from <esql:no-results>
Date Fri, 14 Jun 2002 15:02:05 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message