cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Layes <>
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:

      throw new ResourceNotFoundException("bla bla");

Thanks, Jonathan

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message