Hi Dirkjan, Thank you very much for the suggestion! I actually did not know of the existence of the catch tag in the core JSTL. Good to know for the future :-)
Handling the potential exception I manage to do what I wanted. Regards, Enrico On Thu, Apr 1, 2010 at 4:00 PM, Dirkjan van Diepen <[email protected]> wrote: > Hi Enrico, > > It should be possible to retrieve a document (and also content en metadata) > like this: > <c:set var="document" > value="${repository.fetchDocument['/content/path/to/document/document.xml']}" > /> > > When the document is not available, an error will be thrown. It's possible > to catch the > fetch statement in a <c:catch> for example. Then it should be possible to > check for > an empty document. > > Regards Dirkjan > ******************************************** > Hippocms-dev: Hippo CMS 6 development public mailinglist > > Searchable archives can be found at: > MarkMail: http://hippocms-dev.markmail.org > Nabble: http://www.nabble.com/Hippo-CMS-f26633.html > > -- Enrico Cervato - 0031 (0)615293346 Open Source Software Engineer Sourcesense - making sense of Open Source: http://www.sourcesense.com ******************************************** Hippocms-dev: Hippo CMS 6 development public mailinglist Searchable archives can be found at: MarkMail: http://hippocms-dev.markmail.org Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
