[newbie] ESQL Error Handling
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? 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? If somebody knows the answers or has some suggestions, i would be very grateful if you share them with me. regards, Zein -- Werden Sie mit uns zum OnlineStar 2002! Jetzt GMX wählen - und tolle Preise absahnen! http://www.onlinestar.de - 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]
[newbie] wml serializer
Hi! I wrote some files in xml and some xsl files to transform them into html or wml, whichever device did the request. So everything works fine with jakarta-tomcat 4.0.1 cocoon 2.0.1. Now I took the files in an environment that uses jakarta-tomcat 4.1.10 cocoon 2.0.3. I made the same sitemap entries. Html output works fine, but when I use a Wap device the requested document is empty. If I change the serializer from wml to html in the sitemap I receive the correct wml code in my document. So did anybody has a suggestion what I could have done wrong, that cause the wml serialization to fail? Regards, Zein -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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]
RE: [newbie] wml serializer
Zein, hope you have a statement like that in the serializer section of your sitemap. then the wml type serialization should work ... - map:serializer logger=sitemap.serializer.wml mime-type=text/vnd.wap.wml name=wml src=org.apache.cocoon.serialization.XMLSerializer - I got this one in my Sitemap: map:serializer logger=sitemap.serializer.wml mime-type=text/vnd.wap.wml name=wml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype-system encodingASCII/encoding omit-xml-declarationyes/omit-xml-declaration /map:serializer But it does'nt work... :( -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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]
Re: [newbie] wml serializer
If you put a static wml file in tomcat, can you see it in your WAP-phone (not going via cocoon)? Maybe Tomcat needs to be configured for wml? If you access the wml file via a browser or telnet, can you see the wml? If I put a static wml file (test.wml) for example into the ~/webapps/tomcat-docs/ directory everything works fine. If I put the same file into ~/webapps/cocoon/test/ and write the follwing lines into the sitemap, I receive an empty document map:match pattern=test/test.wml map:generate src=test/test.wml/ map:serialize type=wml/ /map:match If I write map:match pattern=test/test.wml map:generate src=test/test.wml/ map:serialize type=html/ /map:match I receive a file with my wml code. But of course of the html serialization I haven't access to the file with a wap device only with a html browser. Why doesn't it work? I don't really understand where I am wrong. Any more suggestions? Regards, Zein -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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]
RE: [newbie] wml serializer
Are you sure you run Cocoon with the sitemap you have changed (and not the old one). Yes, no doubt at this point. I see the effects when I change the serialization method from html to wml. So the Sitemap entries take effect. Regards, Zein -Message d'origine- De: Zein Dowe [mailto:[EMAIL PROTECTED]] Date: vendredi, 11. octobre 2002 11:58 À: [EMAIL PROTECTED] Objet: [newbie] wml serializer Hi! I wrote some files in xml and some xsl files to transform them into html or wml, whichever device did the request. So everything works fine with jakarta-tomcat 4.0.1 cocoon 2.0.1. Now I took the files in an environment that uses jakarta-tomcat 4.1.10 cocoon 2.0.3. I made the same sitemap entries. Html output works fine, but when I use a Wap device the requested document is empty. If I change the serializer from wml to html in the sitemap I receive the correct wml code in my document. So did anybody has a suggestion what I could have done wrong, that cause the wml serialization to fail? Regards, Zein -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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] -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - 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]