Author: thomas.heute(a)jboss.com
Date: 2009-08-12 18:22:01 -0400 (Wed, 12 Aug 2009)
New Revision: 13753
Modified:
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
Log:
JBEPP-112: NullPointerExceptions in portal JSP error pages
Modified:
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp
===================================================================
---
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-08-12
22:18:14 UTC (rev 13752)
+++
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/page.jsp 2009-08-12
22:22:01 UTC (rev 13753)
@@ -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:
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp
===================================================================
---
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-08-12
22:18:14 UTC (rev 13752)
+++
tags/Enterprise_Portal_Platform_4_3_GA_CP02/core/src/resources/portal-core-war/WEB-INF/jsp/error/portal.jsp 2009-08-12
22:22:01 UTC (rev 13753)
@@ -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