5 List All Employees
The HR web Application has several functionalities. The List All tab in the application displays the details of employees on the web page.
The employee details such as Employee_id, First_name, Last_Name, Email, Phone_number, Job_id, Salary and so on, are retrieved from the Employees table in the database.
In this chapter, you learn to create the basic structure of all the Java classes required to run the HR Web application. You learn to add the code required to build the List All functionality. You will learn how to:
JavaBean.javaand declare a new method
JavaBeanImpl.javaand implement a new method
WebController.javato process the request and response.
- Create a HTML page
listAll.htmlto display the results.
- Create a CSS page
app.cssto be used by the HR Web Application.
Note:The upcoming chapters of the guide explain the step-by-step instructions to create the Java classes and methods that you require for each functionality of the HR Web Application. Use these instructions as a reference. You can download the complete source code from GitHub. See the Github Repository Details.