try{
//get document
}catch(DocumentNotFoundException dnfe){
// output some nice error
}
More tips: http://java.sun.com/developer/EJTechTips/2003/tt0114.html
Jasha Joachimsthal
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Wilson de Paula Pedro Junior
> Sent: donderdag 7 augustus 2008 12:51
> To: Hippo CMS development public mailinglist
> Subject: [HippoCMS-dev] Customized error page
>
> Hi,
>
> How can I customize an http 500 error page?
>
> Like this one:
>
> HTTP ERROR: 500
>
> nl.hippo.client.api.DocumentNotFoundException: Document not found:
> /default/files/default.www/content/nieuws/2008/07/08/JLL-advis
eur-Philips-voor-High-Tech-Campusd.xml
>
> RequestURI=/live/content/nieuws/2008/07/08/JLL-adviseur-Philip
s-voor-High-Tech-Campusd.html
> Caused by:
>
> javax.el.ELException: nl.hippo.client.api.DocumentNotFoundException:
> Document not found:
> /default/files/default.www/content/nieuws/2008/07/08/JLL-advis
eur-Philips-voor-High-Tech-Campusd.xml
> at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
> at
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)...
>
>
>
> We want to catch it's message and display it in a page with
> de website style.
>
> Thanks,
>
> Wilson
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html