Lab 4
Lab 4
LAB 4: SERVLET -1
Lab Activities
Figure below illustrates the use case diagram for the DVD Library application.
MMR@FSKM2018
CSC584 ENTERPRISE PROGRAMMING
d) Add the following private properties to the DVDItem class and provide a getter method for each
property:
String title
String year
String genre
e) Add a constructor to the DVDItem class with the following parameters
String title
String year
String genre
f) Code the constructor to initialize the fields with the parameter values
g) Compile the DVDItem Class.
MMR@FSKM2018
CSC584 ENTERPRISE PROGRAMMING
c) Within the processrequest method, create a collection of DVDItem objects, each one
representing a DVD in the user’s DVD collection.
d) Use print statements to generate the HTML response described at the beginning of this task.
MMR@FSKM2018
CSC584 ENTERPRISE PROGRAMMING
d) Open the web.xml deployment descriptor and set index.html as the welcome file.
MMR@FSKM2018