create account

[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login by edmanuelwild

View this thread on: hive.blogpeakd.comecency.com
· @edmanuelwild ·
$90.11
[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login
![logeando.png](https://files.peakd.com/file/peakd-hive/edmanuelwild/23yJZHGAcfQj4mRuZfwdHyWqmMGLYU4RLdCCA9VQphz5BbyfGutJuvpabn9eYCWJ897i8.png)



![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)


<div class="text-justify">

I have at least two months specializing in the java language, is it old-fashioned, maybe, but as I see it, it is still quite required today, I will not compare it with other technologies, but it seems to me highly functional and still has a lot to give. To be specific I have focused on building web applications using jsp and servlet, I am a computer engineer and all my career I focused most of the time to the frontend, I feel that is what I do best so this backend theme is a challenge for me.


|<div class="text-justify"><i>Tengo al menos dos meses especializandome en el lenguaje de java, ¿algo anticuado?, quizas, pero por como yo lo veo es bastante requerido aún a día de hoy, no lo voy a comparar con otras tecnologias, pero me parece sumamente funcional y aún tiene mucho para dar. Para ser especificos me he centrado en la construcción de aplicaciones web utilizando jsp y servlet, soy ingeniero en informatica y toda mi carrera me concentre en la mayor parte del tiempo al fronted, siento que es lo que mejor se me da así que este tema de backend es todo un reto para mi.</i></div>|
|---|

I have finished some courses in udemy and everything else I have reinforced on youtube and programming forums, we all know that anything we want to search is already in google and even for years, there is nothing dumber than not knowing how to take advantage of your resources and optimize your work time if you ask me. Anyway, in these courses I got to do final projects, including a fully functional customer control, after that I decided to do a small project for a store near home, this as a way to add experience and make real practices, develop an application that is actually used.


|<div class="text-justify"><i>He terminado algunos cursos en udemy y todo lo demás lo he reforzado en youtube y foros de programación, todos sabemos que cualquier cosa que queramos buscar ya esta en google e incluso desde hace años, no hay nada más tonto que no saber aprovechar tus recursos y optimizar tu tiempo de trabajo si me lo preguntan. En fin, en estos cursos llegue a hacer proyectos finales, entre ellos un control de clientes completamente funcional, después de ello decidí hacer un pequeño proyecto para una tienda cerca de casa, esto como una manera de sumar experiencia y hacer practicas reales, desarrollar una aplicación que de verdad sea utilizada.</i></div>|
|---|

![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)


![image.png](https://files.peakd.com/file/peakd-hive/edmanuelwild/23tw5xoDAaoxPci4fhaSEk592Gg2c7xsWyeuEkDttGGKtJuYPvTd2gS2ES4k3CL7H67W8.png)



![image.png](https://files.peakd.com/file/peakd-hive/edmanuelwild/23tw5xoDAaoxugtBuS2i5h62439ahzCLZNYTN9Lrktc8NPxWQCv1F9zoE2yjy31oMirub.png)

![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)




It must be responsive because in fact the priority is to be used on mobile devices by employees of the store, it is something simple, with my application employees can record sales and keep the inventory of products in the store, this through two user roles: Administrator and employee, each with different functions, logically the first will have a higher hierarchy and most importantly, will have the ability to create, edit and delete employee type users, this way the business owner will not need a programmer when he wants to do this task ... Of course, at some point it will have to be maintained, but that is a future problem.


|<div class="text-justify"><i>Debe ser responsive pues de hecho la prioridad es que sea utilizada en dispositivos moviles por los empleados del local, es algo sencillo, con mi aplicación los empleados podran registrar las ventas y llevar el inventario de productos de la tienda, esto mediante dos roles de usuarios: Administrador y empleado, cada uno de ellos con funciones diferentes, logicamente el primero tendrá una mayor jerarquia y lo más importante, tendrá la capacidad de crear, editar y eliminar usuarios de tipo empleado, de esta forma el dueño del negocio no va a necesitar de un programador cuando quiera hacer esta tarea... Claro, en algún punto deberá tener mantenimiento, pero ese es un problema a futuro.</i></div>|
|---|

I'm not sure how long it will take me to finish this application, I'm still relating tables in the database which is probably the most difficult issue for me, I decided to move forward in terms of user views, something I like when working is to always perform the best practices, optimize the program and use as few lines of code as possible, so I use the jsp function of "include", those who ever did php systems will be familiar with this method, I would like to hear your opinion about it.


|<div class="text-justify"><i>No estoy seguro de cuanto tiempo me va a tomar terminar esta aplicación, aún estoy relacionando tablas en la base de datos que es probablemente el tema que más de me dificulta, decidí ir avanzando en cuanto a las vistas de usuario, algo que me gusta al momento de trabajar es realizar siempre las mejores practicas, optimizar el programa y emplear la menor cantidad de lineas de codigo posible, por lo que utilizo la funcion de jsp de "include", los que alguna vez hicieron sistemas en php van a estar familiarizados con este metodo, me gustaría escuchar su opinion al respecto. </i></div>|
|---|


![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)


![image.png](https://files.peakd.com/file/peakd-hive/edmanuelwild/23x1WajkfPCCBXypytXZJNKrkSVyXjXK19HtEb2QmwnF94qaodbdDjGVwYbxqYXYBGWpY.png)



![image.png](https://files.peakd.com/file/peakd-hive/edmanuelwild/EokiLuEbhiXNrPZLZk3y6UsEvZs5rHXPfPtWzkpJSgvyKzqmX6amCScgR98b9d75Gev.png)


![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)


I made the login view, using the bootstrap framework because this way I save a lot of work, I have good results and also it will be automatically responsive all the elements inside my .jsp document, it didn't take me more than a couple of hours to finish it, I must admit I forgot how to work the bootstrap styles, and I didn't use sass for absolutely nothing, that will be a matter for a couple of days because I hope to make the other views this way.... Or maybe not, I really like the result of my login, by the way, I must emphasize that this view will be common, so both user roles will be able to access from there using a role id and validations to identify which environment is performing the login.


|<div class="text-justify"><i>Hice la vista de login, utilizando el framework de bootstrap pues de esta forma me ahorro un montón de trabajo, tengo buenos resultados y además automaticamente sera responsive todos los elementos dentro de mi documento .jsp, no me tomo más que un par de horas terminarlo, debo admitir que olvide como trabajar los estilos de bootstrap, y no utilice sass para absolutamente nada, ese va a ser un asunto para un par de días pues espero hacer las demás vistas de esta forma... O quizá no, realmente me gusto el resultado de mi login, por cierto, debo recalcar que esta vista sera común, por lo cual ambos roles de usuario podran acceder desde allí utilizando un id rol y validaciones para identificar que entorno esta realizando el inicio de sesion.</i></div>|
|---|


![121212.png](https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png)


<hr>

<center><h2>Index.jsp</h2></center>

<hr>

```
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <!-- Bootstrap CSS -->
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
        <script src="https://kit.fontawesome.com/68bd6542c8.js" crossorigin="anonymous"></script>

        <title>Inicio de sesion</title>
    </head>
    <body>

        <!-- Cabecero -->

        <jsp:include page="WEB-INF/paginas/comunes/header.jsp"/>

        <!-- Form de login -->
        
        <jsp:include page="WEB-INF/paginas/comunes/loginForm.jsp"/>

        <!--Footer-->

        <jsp:include page="WEB-INF/paginas/comunes/piePagina.jsp"/>

        <!--- js y otros-->

        <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>

    </body>
</html>

```

<hr>

<center><h4>Header.jsp</h4></center>

<hr>

```
<header id="main-header" class="py-1 bg-dark text-white">
            <div class="container">
                <div class="text-center">
                    <div class="row">
                        <div class="col-md-12">
                            <h1><i class="fas fa-solid fa-shop"></i>Riquero</h1>
                        </div>
                    </div>
                </div>
            </div>
        </header>
```

<hr>

<center><h4>LoginForm.jsp</h4></center>

<hr>

```
<br>
        <div class="container text-center">
            <div class="row">
                <div class="col-md-4 mx-auto">
                    <div class="card">
                        <div class="card-header">
                            <h4>Ingresa tu usuario</h4>
                        </div>
                        <div class="card-body">
                            <form class="was-validated">
                                <img src="img/avatar.svg" width="150" height="auto">
                                <hr>
                                <div class="form-group">
                                    <label for="usuario"><h5><i class="fas fa-user" style="margin-right: 10px;"></i>Usuario</h5></label>
                                    <input type="text" class="form-control" name="usuario" placeholder="Escribe tu usuario..." required/>
                                </div>
                                <div class="form-group">
                                    <label for="password"><h5><i class="fas fa-solid fa-key" style="margin-right: 10px"></i>Contraseña</h5></label>
                                    <input type="password" class="form-control" name="password" placeholder="Escribe tu contraseña..." required/>
                                </div>
                               
                                <a href="#" type="submit" class="btn btn-success btn-block">Ingresar</a>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

```

<hr>

<center><h4>piePagina.jsp  (footer)</h4></center>

</hr>

```
      <footer id="pie-pagina" class="bg-secondary text-white p-2 mt-2">
            <div class="container">
                <div class="col">
                    <p class="lead text-center">
                        Edmanuel Vera &copy Derechos reservados
                    </p>
                </div>
            </div>
        </footer>

```

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 119 others
👎  , ,
properties (23)
authoredmanuelwild
permlinkengesp-building-an-application-with-jsp-and-servlet-java-login
categoryhive-169321
json_metadata{"app":"peakd/2022.10.3","format":"markdown","tags":["spanish","ingenieria","programacion","java","login","jsp","servlet","app","code","bootstrap"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/edmanuelwild/23yJZHGAcfQj4mRuZfwdHyWqmMGLYU4RLdCCA9VQphz5BbyfGutJuvpabn9eYCWJ897i8.png","https://cdn.steemitimages.com/DQmYt3EJ15AosXNxApsYGARu2CRekMWLY2Uy9qiSyHQxQtT/121212.png","https://files.peakd.com/file/peakd-hive/edmanuelwild/23tw5xoDAaoxPci4fhaSEk592Gg2c7xsWyeuEkDttGGKtJuYPvTd2gS2ES4k3CL7H67W8.png","https://files.peakd.com/file/peakd-hive/edmanuelwild/23tw5xoDAaoxugtBuS2i5h62439ahzCLZNYTN9Lrktc8NPxWQCv1F9zoE2yjy31oMirub.png","https://files.peakd.com/file/peakd-hive/edmanuelwild/23x1WajkfPCCBXypytXZJNKrkSVyXjXK19HtEb2QmwnF94qaodbdDjGVwYbxqYXYBGWpY.png","https://files.peakd.com/file/peakd-hive/edmanuelwild/EokiLuEbhiXNrPZLZk3y6UsEvZs5rHXPfPtWzkpJSgvyKzqmX6amCScgR98b9d75Gev.png"]}
created2022-10-23 08:39:24
last_update2022-10-23 08:39:24
depth0
children4
last_payout2022-10-30 08:39:24
cashout_time1969-12-31 23:59:59
total_payout_value44.619 HBD
curator_payout_value45.487 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11,884
author_reputation301,495,655,953,756
root_title"[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login"
beneficiaries
0.
accounthive-169321
weight200
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,702,231
net_rshares145,800,667,915,220
author_curate_reward""
vote details (186)
@diyhub ·
<div class="pull-right"><a href="https://peakd.com/trending/hive-189641"><img src="https://cdn.steemitimages.com/DQmV9e1dikviiK47vokoSCH3WjuGWrd6PScpsgEL8JBEZp5/icon_comments.png"></a></div>

##### Thank you for sharing this post on HIVE!
Your content got selected by our fellow curator tibfox & you received a little thank you upvote from our **non-profit** curation initiative. Your post will be **featured in** one of our recurring **curation compilations** which is aiming to offer you a **stage to widen your audience** within the DIY scene of Hive. 

Next time make sure to post / cross-post your creation within the [DIYHub community on HIVE](https://peakd.com/trending/hive-189641) and you will receive a **higher upvote**!

##### Stay creative & hive on!
👍  
properties (23)
authordiyhub
permlinkre-engesp-building-an-application-with-jsp-and-servlet-java-login-20221023t114228z
categoryhive-169321
json_metadata"{"app": "beem/0.24.26"}"
created2022-10-23 11:42:27
last_update2022-10-23 11:42:27
depth1
children0
last_payout2022-10-30 11:42:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length763
author_reputation530,503,620,497,595
root_title"[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,704,958
net_rshares17,776,984,161
author_curate_reward""
vote details (1)
@freebo ·
amazing just
👍  ,
properties (23)
authorfreebo
permlinkrk8gj6
categoryhive-169321
json_metadata{"app":"hiveblog/0.1"}
created2022-10-24 01:09:06
last_update2022-10-24 01:09:06
depth1
children1
last_payout2022-10-31 01:09:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation-2,100,198,368
root_title"[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login"
beneficiaries
0.
accountfree
weight300
1.
accounthiveonboard
weight100
2.
accountocdb
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,721,548
net_rshares19,735,413,831
author_curate_reward""
vote details (2)
@edmanuelwild ·
Thanks 
properties (22)
authoredmanuelwild
permlinkre-freebo-rk8r33
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2022.10.3"}
created2022-10-24 04:57:06
last_update2022-10-24 04:57:06
depth2
children0
last_payout2022-10-31 04:57:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7
author_reputation301,495,655,953,756
root_title"[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,725,883
net_rshares0
@hivebuzz ·
Congratulations @edmanuelwild! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@edmanuelwild/replies.png?202210221547"></td><td>You got more than 1750 replies.<br>Your next target is to reach 2000 replies.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@edmanuelwild) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
properties (22)
authorhivebuzz
permlinknotify-edmanuelwild-20221023t090500
categoryhive-169321
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-10-23 09:05:00
last_update2022-10-23 09:05:00
depth1
children0
last_payout2022-10-30 09:05:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length829
author_reputation369,213,624,040,822
root_title"[ENG][ESP] Building an application with jsp and servlet (java)🖥️👨‍💻 - login"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,702,610
net_rshares0