<%@ page language="java" isErrorPage="true"%> <%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> <fmt:message key="errorPage.title" /> " />

<%-- Error Messages --%>

<% if (exception != null) { %>
						<%
						exception.printStackTrace(new java.io.PrintWriter(out));
						%>
					
<% } else if ((Exception) request .getAttribute("javax.servlet.error.exception") != null) { %>
						<%
								((Exception) request
								.getAttribute("javax.servlet.error.exception"))
								.printStackTrace(new java.io.PrintWriter(out));
						%>
					
<% } else if (pageContext .findAttribute("org.apache.struts.action.EXCEPTION") != null) { %>
							<%
							exception2.printStackTrace(new java.io.PrintWriter(out));
							%>
						
<%-- only show this if no error messages present --%> <% } %>