META-INF.resources.m.pageactions.pageaction-error.jsp Maven / Gradle / Ivy
<%@ page import="com.manydesigns.portofino.pageactions.AbstractPageAction" %><%@
page import="org.apache.commons.lang.exception.ExceptionUtils" %><%@
page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %><%@
taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@
taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%><%@
taglib prefix="mde" uri="/manydesigns-elements"%><%@
taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--
--%>
<%
Object exception = request.getAttribute(AbstractPageAction.PORTOFINO_PAGEACTION_EXCEPTION);
if(exception instanceof Throwable) {
Throwable rootCause = ExceptionUtils.getRootCause((Throwable) exception);
if(rootCause == null) {
rootCause = (Throwable) exception;
}
pageContext.setAttribute("exceptionString", rootCause.toString());
} else {
pageContext.setAttribute("exceptionString", "unknown");
}
%>
-
© 2015 - 2024 Weber Informatics LLC | Privacy Policy