<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Preformattato HTML Carattere";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.PreformattatoHTMLCarattere
{mso-style-name:"Preformattato HTML Carattere";
mso-style-priority:99;
mso-style-link:"Preformattato HTML";
font-family:Consolas;
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";}
p.HTMLVorformatiert, li.HTMLVorformatiert, div.HTMLVorformatiert
{mso-style-name:"HTML Vorformatiert";
mso-style-link:"HTML Vorformatiert Zchn";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.StileMessaggioDiPostaElettronica23
{mso-style-type:personal;
font-family:"Arial",sans-serif;
color:#1F497D;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.StileMessaggioDiPostaElettronica24
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.StileMessaggioDiPostaElettronica25
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 56.7pt 56.7pt 56.7pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Not yet </span><span lang=EN-US style='font-family:Wingdings;color:#1F497D'>J</span><span lang=EN-US style='color:#1F497D'>. Thank you.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>PS: yes cms is an instance of </span><span lang=EN-GB style='color:black'>CmsJspStatusBean</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Bye, L.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=EN-US style='mso-fareast-language:IT'>Da:</span></b><span lang=EN-US style='mso-fareast-language:IT'> </span><a href="mailto:opencms-dev-bounces@opencms.org"><span lang=EN-US style='mso-fareast-language:IT'>opencms-dev-bounces@opencms.org</span></a><span lang=EN-US style='mso-fareast-language:IT'> [</span><a href="mailto:opencms-dev-bounces@opencms.org"><span lang=EN-US style='mso-fareast-language:IT'>mailto:opencms-dev-bounces@opencms.org</span></a><span lang=EN-US style='mso-fareast-language:IT'>] <b>Per conto di </b>Patric Dosch<br><b>Inviato:</b> Tuesday, March 7, 2017 4:16 PM<br><b>A:</b> The OpenCms mailing list <</span><a href="mailto:opencms-dev@opencms.org"><span lang=EN-US style='mso-fareast-language:IT'>opencms-dev@opencms.org</span></a><span lang=EN-US style='mso-fareast-language:IT'>><br><b>Oggetto:</b> Re: [opencms-dev] error page for subfolder<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'>… have you tried cms.getRequestUri()?<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'>I guess your “cms” is one of </span><span lang=EN-GB style='color:black'>CmsJspStatusBean(pageContext, request, response, exception);<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></pre><pre style='background:white'><span lang=EN-GB style='font-family:"Arial",sans-serif;color:#1F497D'>Regards, Patric<o:p></o:p></span></pre><pre style='background:white'><span lang=EN-GB style='color:black'><o:p> </o:p></span></pre><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=DE style='mso-fareast-language:DE'>Von:</span></b><span lang=DE style='mso-fareast-language:DE'> </span><a href="mailto:opencms-dev-bounces@opencms.org"><span lang=DE style='mso-fareast-language:DE'>opencms-dev-bounces@opencms.org</span></a><span lang=DE style='mso-fareast-language:DE'> [</span><a href="mailto:opencms-dev-bounces@opencms.org"><span lang=DE style='mso-fareast-language:DE'>mailto:opencms-dev-bounces@opencms.org</span></a><span lang=DE style='mso-fareast-language:DE'>] <b>Im Auftrag von </b></span><a href="mailto:lruggeri@maticad.it"><span lang=DE style='mso-fareast-language:DE'>lruggeri@maticad.it</span></a><span lang=DE style='mso-fareast-language:DE'><br><b>Gesendet:</b> Dienstag, 7. März 2017 15:30<br><b>An:</b> 'The OpenCms mailing list' <</span><a href="mailto:opencms-dev@opencms.org"><span lang=DE style='mso-fareast-language:DE'>opencms-dev@opencms.org</span></a><span lang=DE style='mso-fareast-language:DE'>><br><b>Betreff:</b> [opencms-dev] error page for subfolder<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>is it possible in OpenCms 9.5 to provide a custom error page for an entire subfolder?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I know I can set an error page jsp for an entire site. This is the actual logic:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>if (cms.getStatusCode().intValue() == 500) {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> cms.forwardToErrorPage("/sites/default/500/");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>} else {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> cms.forwardToErrorPage("/sites/default/404/");<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>How can I check where the error originated?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Bye, L.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>