Thank you for your help! Now everything does what it has to do. Zein
----- Original Message ----- From: "Vadim Gritsenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 30, 2002 10:23 PM Subject: Re: [newbie] ESQL Error Handling > Zein wrote: > > >Thank you! <map:handle-errors> works fine! > > > >Just one more question: > > > >Is it possible to use <map:select>-tag in <map:handle-errors> 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" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >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 <map:handle-errors/> > >>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. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- 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]>