Author: thomas.heute(a)jboss.com
Date: 2009-08-12 18:18:14 -0400 (Wed, 12 Aug 2009)
New Revision: 13752
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
Log:
JBEPP-112: NullPointerExceptions in portal JSP error pages
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-08-12
18:19:28 UTC (rev 13751)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-08-12
22:18:14 UTC (rev 13752)
@@ -6,9 +6,14 @@
<h2 class="portlet-msg-error"><%=
request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
</h2>
+<%
+ if (request.getAttribute("org.jboss.portal.control.CAUSE") != null)
+ {
+%>
<div class="portlet-font">Cause: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.CAUSE").toString())
%>
</div>
<%
+ }
if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
{
%>
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-08-12
18:19:28 UTC (rev 13751)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-08-12
22:18:14 UTC (rev 13752)
@@ -5,9 +5,15 @@
<h2 class="portlet-msg-error"><%=
request.getAttribute("org.jboss.portal.control.ERROR_TYPE") %>
</h2>
+<%
+ if (request.getAttribute("org.jboss.portal.control.CAUSE") != null)
+ {
+%>
<div class="portlet-font">Cause: <%=
EntityEncoder.FULL.encode(request.getAttribute("org.jboss.portal.control.CAUSE").toString())
%>
</div>
<%
+ }
+
if (request.getAttribute("org.jboss.portal.control.MESSAGE") != null)
{
%>
Show replies by date