[opencms-dev] error page for subfolder

lruggeri at maticad.it lruggeri at maticad.it
Tue Mar 7 15:29:55 CET 2017


Hello,

is it possible in OpenCms 9.5 to provide a custom error page for an entire
subfolder?

I know I can set an error page jsp for an entire site. This is the actual
logic:

 

if (cms.getStatusCode().intValue() == 500) {

    cms.forwardToErrorPage("/sites/default/500/");

} else {

   cms.forwardToErrorPage("/sites/default/404/");

}

 

How can I check where the error originated?

Thanks 

 

Bye, L.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170307/a2451a66/attachment.htm>


More information about the opencms-dev mailing list