Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 64481 invoked by uid 500); 30 Sep 2002 20:25:06 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 64470 invoked from network); 30 Sep 2002 20:25:06 -0000 Message-ID: <3D98B2C1.1090800@verizon.net> Date: Mon, 30 Sep 2002 16:23:29 -0400 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: [newbie] ESQL Error Handling References: <11251.1033025873@www61.gmx.net> <3D92FD10.2080608@verizon.net> <000b01c268b7$4c884ca0$0200a8c0@Celeron> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Zein wrote: >Thank you! works fine! > >Just one more question: > >Is it possible to use -tag in to prepare the >thrown exception >for html or wml whichever device the query came from? > Yes. map:select, map:match, map:action - all are allowed. Vadim >regards, >Zein > > >----- Original Message ----- >From: "Vadim Gritsenko" >To: >Sent: Thursday, September 26, 2002 2:26 PM >Subject: Re: [newbie] ESQL Error Handling > > > > >>Zein Dowe wrote: >> >> >> >>>Hi, >>> >>>i got some questions about the esql logicsheet from cocoon. >>>I suppose the first one is easy to answer: >>> >>>1. How can i count the number of rows from the result of my query? >>> >>> >>> >>Not sure does ESQL has something for this or not, but in any case you >>can count using XSLT. >> >> >> >> >>>The second one seems quit more difficult to me (but i am a newbie and >>> >>> >know > > >>>nothing ;-): >>> >>>2. How can I handle the exception which is thrown if the database >>> >>> >connection > > >>>fails? >>> >>>If i get it right, this kind of exception is handled by cocoon itself and >>>not >>>by the esql-logicsheet. So how can i prevent that the ugly cocoon >>> >>> >exception > > >>>window pops up and, instead of that, show a message which >>>says that the connection process has failed? >>> >>> >>> >>Any exception can be handled as you want using >>pipeline in the sitemap. This pipeline has pre-set generator, so you can >>write an XSLT to format (and process) the error any way you want it. >> >>Vadim >> >> >> >> >>>If somebody knows the answers or has some suggestions, i would be >>>very grateful if you share them with me. >>> >>>regards, >>>Zein >>> >>> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: