Develop and implement an employee hiring Web application using Model 2 architecture, that:
- requires department and employee information from the user
- stores the new employee personal and hiring data into flat files
- displays all the employees hired so far and their relevant hiring data (note that this is the only functionality that you have to add to what Example 9 from online Module 3 demonstrates).
The application must use flat text files Departments.txt, Employees.txt, and Hiring.txt to store and/or retrieve its data.
- TheDepartments.txt file should contain pairs of: name, description.
- The Employees.txt file should contain quartets of: name, jobTitle, yearHired, gender
- The Hiring.txt file should contain pairs of: employeeName, departmentName.
The Web application’s form should contain:
- a combo-box for selecting which department: Human Resources, Software Development, Media Relations
- four text boxes for entering employees name, jobTitle, yearHired, gender
- a button for submitting and processing the hiring.
The Web application must use:
- The Model 2 architecture — JSP pages for the view, a servletas the controller, and JavaBean and ordinary Java classes as the model.
oHiringServlet should act as the controller.
oform.jsp and confirmation.jsp pages should act as the view.
oEmployee, Department, and Hiring JavaBean classes as well as the HiringService and DepartmentService ordinary Java classes should act as the model.
Note 1: Please make sure to examine in details the Web application’s structure of Example 9 from online Module 3 (Table of Contents -> Course Content-> Week 4 ->Activities-> Servlets-> Commentary Module 3:Servlets)
Note 2: The Departments.txt text file should be populated with the data listed below before the Web application is used (analogous to the Courses.txt file from Example 9):
The Employees.txt, and Hiring.txt files should be populated through the Web application.
Note: All the input and output should be handled by the view (no Java code implementing input checking or business logic should be placed in the JSPs). All entry information should be properly checked by the controller. All the business logic should be handled by the model.
All the required files should be submitted in your assignment folder in one zip file named StudentFirstInitialStudentLastNameProject2.zip.(For example, awebbProject2.zip):
1. Design Diagram demonstrating the architecture of the application
2. a zip file of your Netbeans project and any additional files if required
3. Word document including:
a. Test plan (steps and scenarios including data be used for testing);
b. Screen snapshots of each of your test cases (provide input parameters and screenshots demonstrating the results)
4. Description of the architecture that you implemented
5. Description of how to set up your application
a. this description should include all steps starting from how to open your project in NetBeans, how to compile, how to run locally, version of the Netbeans, Application Server used (Tomcat or Glassfish), how to start GlassFish/Tomcat from the netbeans
6. Description of the Tools and architecture that you implemented, such as
a. user will open IE and invoke index.jsp located in xxx, index.jsp has an HREF that includes a location of the servlet
b. the servlet URL is defined in web.xml and etc
7. SQL Scripts and instructions how to execute them
Leave a reply