Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dda-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Francisco Montiel Jimenez
dda-front
Commits
d6ee4892
Commit
d6ee4892
authored
Oct 10, 2024
by
Jose Francisco Montiel Jimenez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agrega manejo de error de servidor
parent
7d3ad380
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
6 deletions
+91
-6
front/src/main/webapp/META-INF/context.xml
front/src/main/webapp/META-INF/context.xml
+5
-1
front/src/main/webapp/WEB-INF/web.xml
front/src/main/webapp/WEB-INF/web.xml
+0
-5
front/src/main/webapp/jsp/errorServidor.jsp
front/src/main/webapp/jsp/errorServidor.jsp
+86
-0
No files found.
front/src/main/webapp/META-INF/context.xml
View file @
d6ee4892
<?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>
front/src/main/webapp/WEB-INF/web.xml
View file @
d6ee4892
...
...
@@ -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
front/src/main/webapp/jsp/errorServidor.jsp
0 → 100644
View file @
d6ee4892
<!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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment