Lab 6
Lab 6
Lab 6
LAB 6: SERVLET -3
Post Lab Activities
Task 1 Developing the Add Form View Servlet
4. Within the init method, retrieve the genre-list initialization parameter. You should split method on this value to
populate the genres instance variable. The delimiter of the string is a comma.
5. Within the processRequest method, use print statements to generate the HTML form. You should use the
add_dvd.html static page as a guide to implement the processRequest method.
6. Replace the section that displays the Genre drop-down list with values in the genres variable.
MMR@FSKM2018
CSC 584 ENTERPRISE PROGRAMMING
You can use the processRequest method of the ErrorPageServlet class as a guide to implement the
display of the error messages.
MMR@FSKM2018
CSC 584 ENTERPRISE PROGRAMMING
To redisplay a selected option within a select form element , use the code similar to:
MMR@FSKM2018