Question: Call a servlet which creates a list of 5 objects of a particular data class o The data class you will create yourself, based on
Call a servlet which creates a list of 5 objects of a particular data class
o The data class you will create yourself, based on which product category you were assigned
This list is in a separate PDF linked to this assignment
o You must give the class attributes appropriate to the product category - not just generic attributes like name and price
o Obviously the data class will need constructors and getters / setters
o Put the product objects in a list and add to the session
o Forward control to a JSP page which should look something like this initially:

When you click on the Get Stock button this should invoke a Javascript function which does the following:
Retrieve the list of products from the session (you can use a JSP expression for this)
Populate a table with the list of products
o You may use pure Javascript for this, or you can also use the o As per the data class, the table should have columns specific to that product category Add an event listener to each row so that when you click on the row, it shows the image of that product in a div below (or to the right of) the table of products (similar to the example below) o Implying your data class will need an image name attribute, and you should store the images in a folder in your web application Please complete this using Javascript code please. Thank you 
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
