This is a project in which we have to design a web application related to a pharmacy with this application we are going to use Servlets, HTML, CSS, Java, JavaScript, Maven and Tomcat Server to create it. The instructions of what methods we have to use and its functions are as follows:
- Entorns_ FrontEnd.pdf
- Entorns_ Backend.pdf
- Entorns_ BBDD.pdf (Check this file to create the database, important!)
In the current project we have three main pages that are Login.html
, Gestio.html
, Alta.html
that I will explain in this section, the three pages work with Servlets and instances of the XMLHttpRequest object. The XMLHttpRequest object is used in JavaScript to make asynchronous HTTP requests to a server.
The GET and POST methods are two of the most common HTTP methods used to send requests to a server.
It is a page where the user accesses with his username and password, the user information is stored in the database, the user must be created previously.
Login view
On this page the doctor can see all patients related to his or her user as well as the name of the medicine prescribed to a patient and the date until which he or she has to continue the medication. In addition, there is a Alta button which will be used to prescribe new medicines to other users or the same in a new page.
Gestio View Doctor 1
Gestio View Doctor 2
This is the last web page, its functionality is to add an id for a xip to assign a patient by means of his e-mail and a medicine with date assigned by a doctor, once the fields are filled they are sent to the database and to check that they are inserted we go back to Gestio which will load the new inserted data.
View Alta
Patients
Medicines
Calendar
New record
Back to Gestio