src/main/webapp/WEB-INF/dynamic_fragments/error.jsp

changeset 39
e722861558bb
parent 29
27a0fdd7bca7
child 46
1574965c7dc7
equal deleted inserted replaced
38:cf85ef18f231 39:e722861558bb
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" session="true" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@page import="de.uapcore.lightpit.modules.ErrorModule" %> 28 <%@page import="de.uapcore.lightpit.modules.ErrorModule" %>
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
31
32 <jsp:useBean id="exception" scope="request" type="java.lang.Throwable"/>
31 33
32 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/> 34 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/>
33 35
34 <div id="error-page"> 36 <div id="error-page">
35 <h1><fmt:message key="h1"/></h1> 37 <h1><fmt:message key="h1"/></h1>
36 <table> 38 <table>
37 <tr> 39 <tr>
38 <th><fmt:message key="errorCode" />:</th> 40 <th><fmt:message key="errorCode"/>:</th>
39 <td>${errorCode}</td> 41 <td>${errorCode}</td>
40 </tr> 42 </tr>
41 <tr> 43 <tr>
42 <th><fmt:message key="errorMessage" />:</th> 44 <th><fmt:message key="errorMessage" />:</th>
43 <td><fmt:message key="errorMessage.${errorCode}" /></td> 45 <td><fmt:message key="errorMessage.${errorCode}" /></td>

mercurial