Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProyectoFinal-Bootcamp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Baez
ProyectoFinal-Bootcamp
Commits
5def2229
Commit
5def2229
authored
May 18, 2022
by
Angel Zarate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mejoras en el menu login
parent
9da93b2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
71 deletions
+100
-71
src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java
+9
-9
src/main/webapp/menu.jsp
+9
-62
src/main/webapp/menulogin.css
+82
-0
No files found.
src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java
View file @
5def2229
...
@@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet {
...
@@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet {
protected
void
doPost
(
HttpServletRequest
request
,
HttpServletResponse
response
)
protected
void
doPost
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
ServletException
,
IOException
{
throws
ServletException
,
IOException
{
response
.
setContentType
(
"text/html"
);
response
.
setContentType
(
"text/html"
);
PrintWriter
out
=
response
.
getWriter
();
PrintWriter
out
=
response
.
getWriter
();
String
nombre
=
request
.
getParameter
(
"nombre"
);
String
nombre
=
request
.
getParameter
(
"nombre"
);
String
apellido
=
request
.
getParameter
(
"apellido"
);
String
apellido
=
request
.
getParameter
(
"apellido"
);
String
email
=
request
.
getParameter
(
"correo"
);
String
email
=
request
.
getParameter
(
"correo"
);
String
nro_cedulaStr
=
request
.
getParameter
(
"nro_cedula"
);
String
nro_cedulaStr
=
request
.
getParameter
(
"nro_cedula"
);
int
nro_cedula
=
Integer
.
parseInt
(
nro_cedulaStr
);
int
nro_cedula
=
Integer
.
parseInt
(
nro_cedulaStr
);
Profesor
p
=
new
Profesor
(
nro_cedula
,
nombre
,
apellido
,
email
);
Profesor
p
=
new
Profesor
(
nro_cedula
,
nombre
,
apellido
,
email
);
int
status
=
ProfesorDao
.
save
(
p
);
int
status
=
ProfesorDao
.
save
(
p
);
if
(
status
>
0
)
{
if
(
status
>
0
)
{
out
.
print
(
"<p>Record saved successfully!</p>"
);
out
.
print
(
"<p>Record saved successfully!</p>"
);
request
.
getRequestDispatcher
(
"formulario_profesor.jsp"
).
include
(
request
,
response
);
request
.
getRequestDispatcher
(
"formulario_profesor.jsp"
).
include
(
request
,
response
);
}
else
{
}
else
{
out
.
println
(
"Sorry! unable to save record"
);
out
.
println
(
"Sorry! unable to save record"
);
}
}
...
...
src/main/webapp/menu.jsp
View file @
5def2229
...
@@ -17,80 +17,27 @@
...
@@ -17,80 +17,27 @@
<head>
<head>
<link
rel=
"shortcut icon"
href=
"imagenes/roshkaicon.ico"
sizes=
"any"
/>
<link
rel=
"shortcut icon"
href=
"imagenes/roshkaicon.ico"
sizes=
"any"
/>
</head>
<link
rel=
"stylesheet"
href=
"menulogin.css"
>
<style>
<link
href=
"https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap"
rel=
"stylesheet"
>
<
link
href
=
"https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap"
rel
=
"stylesheet"
>*
{
box-sizing
:
border-box
;
}
body
{
font-family
:
'Concert One'
,
cursive
;
font-family
:
'Francois One'
,
sans-serif
;
font-family
:
'Satisfy'
,
cursive
;
font-family
:
'Staatliches'
,
cursive
;
font-size
:
13px
}
.header
,
.footer
{
background-color
:
rgb
(
18
,
18
,
98
);
color
:
white
;
padding
:
60px
;
}
.column
{
float
:
left
;
padding
:
30px
;
}
.clearfix
::after
{
content
:
""
;
clear
:
both
;
display
:
table
;
}
a
{
color
:
white
;
}
.menu
{
width
:
50%
;
}
.content
{
width
:
50%
;
}
.menu
ul
{
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
}
.menu
li
{
padding
:
8px
;
margin-bottom
:
8px
;
background-color
:
rgb
(
18
,
18
,
98
);
color
:
#ffffff
;
}
.menu
li
:hover
{
background-color
:
rgb
(
18
,
18
,
98
);
}
</style>
</head>
</head>
</head>
<body>
<body>
<div
class=
"logo"
><img
src=
"imagenes/logo-roshka.svg"
alt=
"logo-roshka"
></div>
<div
class=
"header"
>
<div
class=
"header"
>
<h1>
MENU TH
</h1>
<h1>
MENU TH
</h1>
<h2>
EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP
</h2>
<h2>
EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP
</h2>
<h3>
PUEDE ACCEDER A LOS SIGUIENTES LINKS:
</h3>
</div>
</div>
<div
class=
"column content"
>
<!--
<div class="column content">
<h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1>
<h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1>
</div>
</div>
-->
<div
class=
"clearfix"
>
<div
class=
"clearfix"
>
<div
class=
"column menu"
>
<div
class=
"column menu"
>
...
...
src/main/webapp/menulogin.css
0 → 100644
View file @
5def2229
*
{
box-sizing
:
border-box
;
}
img
{
width
:
200px
;
padding
:
10px
;
display
:
block
;
padding
:
10px
;
}
body
{
font-family
:
'Concert One'
,
cursive
;
font-family
:
'Francois One'
,
sans-serif
;
font-family
:
'Satisfy'
,
cursive
;
font-family
:
'Staatliches'
,
cursive
;
font-size
:
13px
;
background-image
:
url(imagenes/descarga.svg)
;
}
.header
,
.footer
{
background-color
:
whitesmoke
;
color
:
rgb
(
18
,
18
,
98
);
padding
:
60px
;
}
.header
,
.footer
{
background-color
:
aqua
;
}
.column
{
float
:
left
;
padding
:
30px
;
}
.clearfix
::after
{
content
:
""
;
clear
:
both
;
display
:
table
;
}
a
{
color
:
white
;
text-decoration
:
none
;
}
.menu
{
width
:
50%
;
}
.content
{
width
:
50%
;
}
.menu
ul
{
list-style-type
:
none
;
margin
:
0
;
padding
:
0
;
}
.menu
li
{
padding
:
8px
;
margin-bottom
:
8px
;
background-color
:
rgb
(
18
,
18
,
98
);
color
:
#ffffff
;
}
.menu
li
:hover
{
background-color
:
rgb
(
18
,
18
,
98
);
}
div
.header
{
background-image
:
url(imagenes/descarga.svg)
;
transition-property
:
opacity
,
left
;
transition-duration
:
3s
,
5s
;
}
h1
{
text-align
:
center
;
}
\ No newline at end of file
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