[opencms-dev] error page for subfolder
lruggeri at maticad.it
lruggeri at maticad.it
Wed Mar 8 09:26:01 CET 2017
Not yet :). Thank you.
PS: yes cms is an instance of CmsJspStatusBean
Bye, L.
Da: <mailto:opencms-dev-bounces at opencms.org>
opencms-dev-bounces at opencms.org [ <mailto:opencms-dev-bounces at opencms.org>
mailto:opencms-dev-bounces at opencms.org] Per conto di Patric Dosch
Inviato: Tuesday, March 7, 2017 4:16 PM
A: The OpenCms mailing list < <mailto:opencms-dev at opencms.org>
opencms-dev at opencms.org>
Oggetto: Re: [opencms-dev] error page for subfolder
have you tried cms.getRequestUri()?
I guess your cms is one of CmsJspStatusBean(pageContext, request,
response, exception);
Regards, Patric
Von: <mailto:opencms-dev-bounces at opencms.org>
opencms-dev-bounces at opencms.org [ <mailto:opencms-dev-bounces at opencms.org>
mailto:opencms-dev-bounces at opencms.org] Im Auftrag von
<mailto:lruggeri at maticad.it> lruggeri at maticad.it
Gesendet: Dienstag, 7. März 2017 15:30
An: 'The OpenCms mailing list' < <mailto:opencms-dev at opencms.org>
opencms-dev at opencms.org>
Betreff: [opencms-dev] error page for subfolder
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/20170308/6d35d827/attachment.htm>
More information about the opencms-dev
mailing list