cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Edge" <>
Subject Re: cocoon-users Digest 25 Oct 2002 14:33:49 -0000 Issue 1662
Date Fri, 25 Oct 2002 14:40:41 GMT

Why would it be a bad design, Chris? My understanding of ESQL is that it exists specifically
for the purpose of extracting data from a database and formatting it as XML. What benefit
is there to having a SELECT in an action, besides having people such as yourself consider
it a good design.



----- Message from Christian Haul <> on Fri, 25
Oct 2002 13:13:56 +0200 -----
 Subject: Re: Throwing an Exception       
          within ESQL                     

On 25.Oct.2002 -- 10:42 AM, Michael Edge wrote:
> Hi
> In the XSP snippet below I'd like to throw an exception from within <esql:no-results>.
My questions are: how do I do this and will the exception be caught by the <map:handle-errors>
section of the sitemap?

If you really want, you could throw an exception as you like. I think
it should be a processing exception.

However, you should really consider to do the select in an action, for
example the existing database or modular database actions.

I would cosider your request as extremely bad design.

C h r i s t i a n       H a u l
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

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