Se agrega manejo de error de servidor

parent 7d3ad380
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="dla"/>
<Context antiJARLocking="true" path="dla">
<error-page>
<location>/jsp/errorServidor.jsp</location>
</error-page>
</Context>
......@@ -92,11 +92,6 @@
<location>/jsp/errorGeneral.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/jsp/errorGeneral.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/jsp/errorGeneral.jsp</location>
</error-page>
</web-app>
\ No newline at end of file
<!DOCTYPE html >
<%@ page language="java" contentType="text/html; charset=iso-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}" scope="request" />
<html>
<head>
<title>Error</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
<%@include file="/jsp/common/scripts.jsp"%>
<%@include file="/jsp/common/styles.jsp"%>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
padding: 50px;
background-color: #f8f9fa;
}
.error-container {
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
padding: 20px;
display: inline-block;
}
.error-message {
color: #dc3545;
font-size: 24px;
margin-bottom: 20px;
}
.error-description {
color: #6c757d;
font-size: 18px;
}
.back-button {
background-color: red;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
.back-button:hover {
background-color: darkred;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 10vh;
text-align: center;
}
</style>
</head>
<body>
<div class="error-container">
<div class="error-message">Ocurri un error.</div>
<div class="error-description">Por favor, intente nuevamente ms tarde.</div>
</div>
<div class="container">
<button class="back-button" onclick="goBack()">Regresar</button>
</div>
<script>
function goBack() {
window.history.back();
}
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment