Using Cocoon 2.1.8

I am displaying data from a database that, in theory, contains
URL links to files on the local server.  Occasionally, for various reasons,
the files are not available.  At the moment, Cocoon returns an 
informative - but ugly - error page:

Resource not found
java.io.FileNotFoundException: [path to missing file] (The system cannot find 
the file specified)
Cocoon stacktrace[hide] 
Error during resolving of the input stream file: [...]myapp/sitemap.xmap - 
335:73 <map:read> 
file: [...]myapp/sitemap.xmap - 887:66 <map:mount> 

Is there a way I can "trap" this error and display a custom page
with a more friendly message?

Thanks
Derek



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to