@@ -0,0 +1,1522 @@
+package com.ust;%0A%0Aimport java.io.IOException;%0Aimport java.util.Vector;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.servlet.http.HttpSession;%0A%0A/**%0A * Servlet implementation class AdminProductViewServlet%0A */%0Apublic class AdminProductViewServlet extends HttpServlet %7B%0A%09private static final long serialVersionUID = 1L;%0A       %0A    /**%0A     * @see HttpServlet#HttpServlet()%0A     */%0A    public AdminProductViewServlet() %7B%0A        super();%0A        // TODO Auto-generated constructor stub%0A    %7D%0A%0A%09/**%0A%09 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)%0A%09 */%0A%09protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %7B%0A%09%09//creates an object of the product class%0A%09%09ProductList pl = new ProductList();%0A%09%09%0A%09%09//calls the product class to call the database and loads the product vectors%0A%09%09pl.setVector();%0A%09%09Vector%3CInteger%3E productId = pl.productId;%0A%09%09Vector%3CString%3E productName = pl.productName;%0A%09%09Vector%3CDouble%3E productPrice = pl.productPrice;%0A%09%09%0A%09%09//creates and forwards the information to the jsp page%0A%09%09%09request.setAttribute(%22productId%22, productId);%0A%09%09%09request.setAttribute(%22productName%22, productName);%0A%09%09%09request.setAttribute(%22productPrice%22, productPrice);%0A%09%09%09System.out.println(%22in product servlet%22);%0A%09%09%09request.getRequestDispatcher(%22AdminViewProducts.jsp%22).forward(request, response);%0A%09%0A%09%0A%09%7D%0A%0A%0A%7D%0A

Create AdminProductViewServlet.java