When cocoon is down

2007-06-10 Thread philguillard
When something wrong occurs (example: connection pull to database is full / my fault when i don't close sessions correctly with hibernate), cocoon is sometimes not responding. I'd like to know how to render a 404 or 503 instead. Should i change something on cocoon itself? on the tomcat conne

Re: HTML scraping with cocoon

2007-02-16 Thread philguillard
Using HtmlGenerator, you get HTML pages transformed in XHTML, then you can manipulate them with XSL transformations. Phil Saliya Ekanayake wrote: Hi, I'm trying to implement a HTML screen scraper and I heard that cocoon can be used for this. Can anybody point me to a good link regarding thi

Re: Convert string from html to xhtml

2007-01-15 Thread philguillard
I guess it is not possible to configure that in the html transformer? Phil Torsten Curdt wrote: On 15.01.2007, at 07:38, Bertrand Delacretaz wrote: On 1/14/07, philguillard <[EMAIL PROTECTED]> wrote: ... Anybody any idea? Is there a way to call jtidy to convert a string in java?...

Re: Convert string from html to xhtml

2007-01-14 Thread philguillard
Thanks a lot for this quick response. Phil Steven D. Majewski wrote: On Jan 14, 2007, at 2:45 PM, philguillard wrote: Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file t

Convert string from html to xhtml

2007-01-14 Thread philguillard
Hi, I'd like to convert html code to xhtml, but that code is coming from database, i know to use html generator -thus jtidy-, but this time it is not a html file that i download, and i can't call a generator for each database field. Anybody any idea? Is there a way to call jtidy to convert a

Re: How to read RSS

2006-12-22 Thread philguillard
Hello Jonhson, If you need to store RSS feeds in order to display them at any time with history, then you should save them in database, then Informa (http://informa.sourceforge.net/index.html) is a tool often used by RSS feed aggragators to parse and save RSS feeds. It is in java, so it is easy to

Re: Cocoon-based RSS server

2006-11-30 Thread philguillard
You could also use Cforms +Informa (http://informa.sourceforge.net/index.html). You'll have to develop in java and loose the power of XSL, but you'll get facilities to generate the right RSS formats. Phil Jan Behrens wrote: maybe also try here -> http://wiki.apache.org/cocoon/Schema2CocoonFor

Re: CIncludes & namespaces

2006-05-07 Thread philguillard
I've got the same problem, no idea at the moment.. Phil Victoria Vitaver wrote: Hi, I have a problem with cinclude leaving namespaces where there shouldn't be any. In a nutshell, I need to send some XML in a Post request, and grab a response(also XML). Using cinclude, I'm doing: http:/

Re: Trouble loading XSLTC componen

2006-05-02 Thread philguillard
Thanks Antonio, Hum...It seems that trouble disappeared with time (and changes..), i didn't have the opportunity to inestigate! Phil Antonio Gallardo wrote: Hi, Is there a another (an older version) cocoon.jar in the class path? Best Regards, Antonio Gallardo. philguillard esc

Hibernate+Cocoon+EHCache

2006-04-03 Thread philguillard
Hi, I use EH Cache for Cocoon and Hibernate. I use it 2 times, not the same way, from cocoon side it is registered with Avalon, from hibernate side it is just declared in hibernate.cfg.xml file as the property cache.provider_class=org.hibernate.cache.EhCacheProvider (My configuration comes fr

Re: How to catch an InvalidContinuationException?

2006-03-07 Thread philguillard
This should work, you should be able to generate what you want this way, i did it today. I don't know what is , but i know you can keep the main sitemap error handling and do a custom one in any sub-sitemap. Phil Brian Maddy wrote: Has anyone successfully been able to catch an InvalidContin

Trouble loading XSLTC component

2006-03-02 Thread philguillard
Hi, After a cocoon restart, on the first request on any sitemap i get this Internal Server Error: Could not find component (key [org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc]) On the second click it is ok. What's wrong there? I don't have any idea! Below the details. Regards, Phil In

Re: get URI inside flowscript

2006-02-10 Thread philguillard
I don't remember well, there should be cocoon.request.getServerName, and if you don't find for context and sitemapUri simply pass it as parameter from sitemap where it easy to get these values.. For your redirection try cocoon.redirectTo("http://www.google.com";, true) to make an external redire

Re: Cocoon Portal and browser back button problems

2006-02-10 Thread philguillard
Hi Angelo, I had this trouble too. But i didn't solve it definitely. My opinion : - portal is not 100% ready for internet web site production because of this, since 99% of internet users use intensively using back and refresh buttons! (if you really insist on back and mostly refresh buttons i

Re: i18n:attr translation

2006-02-10 Thread philguillard
Andrew Stevens wrote: From: philguillard <[EMAIL PROTECTED]> Date: Fri, 10 Feb 2006 01:39:17 +0800 Hi, What do you think about that ? I get a WARN I18nTransformer: Translation not found for attribute alt in element Is that not the right synthax ? The fact it's the I18n

i18n:attr translation

2006-02-09 Thread philguillard
Hi, What do you think about that ? I get a WARN I18nTransformer: Translation not found for attribute alt in element Is that not the right synthax ? Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Removing and/or escaping apos' in XSL

2006-02-04 Thread philguillard
I've found a way, maybe this could help for others ... then anywhere in the XSL template : {translate($foo,$apos, '`')} Phil philguillard wrote: Hi all, Hum.. I want to escape the apostrophe (') in XSL Example : foo value is "I'm askin' to cocoon'

Removing and/or escaping apos' in XSL

2006-02-04 Thread philguillard
Hi all, Hum.. I want to escape the apostrophe (') in XSL Example : foo value is "I'm askin' to cocoon's mailinglist" None of these tries are correct : Then i tried to define $apos as a variable to be able to use the transfrom function, but the same problem arizes when i declare it : or

Re: How to access the session context with flowscript?

2006-01-17 Thread philguillard
ess.js", line 17: uncaught JavaScript exception: at callTest (file:/Users/Tino/Documents/workspace/Prototyp/protected/scripts/nav-access.js, Line 17): java.lang.NullPointerException Thanks for your help, Tino philguillard schrieb: Hi, It seems your cocoon.session.getAttribute("ID"

Re: How to access the session context with flowscript?

2006-01-16 Thread philguillard
Hi, It seems your cocoon.session.getAttribute("ID") returns null. Did you set previously the ID in the session ? Just in case (take it as suggestion) : If you are working on auth-framework or portal (cause i see here the "ID" term), all is put inside the session in XML format, then you would

Re: Cocoon and eXist

2006-01-05 Thread philguillard
You may also have a look at http://wiki.apache.org/cocoon/EXistInCocoon Just a few jars to add and some web.xml changes, an old cocoon release is mentioned there but it worked for me. From what i remember, the cocoon app in eXist is just a light application. Phil Jonas Lundberg wrote: Peter

cookie setDomain

2006-01-05 Thread philguillard
Hi, Is it possible (or impossible) to set the cookie domain at the time (or after) the cookie creation? I use Portal block, thus Auth-framework, and i'd like to set the domain to ".mydomain.com" instead of "www.mydomain.com" for subdomain issues (to be able to keep the session with subdomains

Strange Pluto+Tomcat Realm mixture

2006-01-03 Thread philguillard
Hi, It seems i get interferances between some security-constraint in Tomcat Realm and Pluto : ==> catalina.out <== element "security-constraint" occurs more than once. (parent class: org.apache.cocoon.portal.pluto.om.WebApplicationDefinitionImpl) location: /web-app/security-constraint{file: f

cookie setDomain

2005-12-28 Thread philguillard
Hi all, Is there a way to remove "www." or the domain prefix from the session tracking cookie domain with some modification on the cocoon servlet? From now i tried to modify the HttpCookie class with a setDomain("mydomain.com") but this doesn't seem to have any effect. On my browser, all cookie

Re: MySQL and Cocoon

2005-12-26 Thread philguillard
Hi, Your conf looks basically ok. The best way is to see what you get in mysql logs, if you are lucky it will maybe log a permission problem. Restart mysql with log feature mysqladmin shutdown -u root -p mysqld_safe --log & tail -f /var/lib/mysql/localhost.log Phil sergio del amo wrote: Hi,