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.

Regards

Michael



----- Message from Christian Haul <[EMAIL PROTECTED]> on Fri, 25 
Oct 2002 13:13:56 +0200 -----
                                          
      To: [EMAIL PROTECTED]     
                                          
 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.

             Chris.
--
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    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.     <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