@@ -0,0 +1,1718 @@
+package com.ust;%0A%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0Aimport java.util.Vector;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A/**%0A * Servlet implementation class AdminProductDelete%0A */%0Apublic class AdminProductDelete extends HttpServlet %7B%0A%09private static final long serialVersionUID = 1L;%0A       %0A    /**%0A     * @see HttpServlet#HttpServlet()%0A     */%0A    public AdminProductDelete() %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%09String%5B%5D ids=request.getParameterValues(%22buyList%22);%0A%09%09String%5B%5D names=request.getParameterValues(%22Product Name%22);%0A%09%09String%5B%5D price=request.getParameterValues(%22Product Price%22);%0A%09%09String%5B%5D newId=request.getParameterValues(%22Product ID%22);%0A%09%09ProductList pl = new ProductList();%0A%09%09PrintWriter pw = response.getWriter();%0A%09%09String choice = request.getParameter(%22choice%22);%0A%09%09if(choice.equals(%22Delete%22))%7B%0A%09%09%09//calls the product class to call the database and loads the product vectors%0A%09%09%09pl.deleteProducts(ids);%0A%09%09%09pw.print(%22Item(s) has been deleted%3Cbr%3E%22);%0A%09%09%7D%0A%09%09if(choice.equals(%22Update%22))%7B%0A%09%09%09pl.updateProducts(ids,names,price,newId);%0A%09%09%09pw.print(%22Item(s) has been updated%3Cbr%3E%22);%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%09%0A%09%09%0A%09%09%0A%09%09%0A%09%09pw.println(%22%3Ca href=%5C%22http://localhost:8082/OSM/AdminProductViewServlet%5C%22%3E%3Cb%3EEdit Products%3C/b%3E%3C/a%3E%22);%0A%09%09pw.println(%22%3Ca href=%5C%22http://localhost:8082/OSM/AdminForm.jsp%5C%22%3E%3Cb%3EAdd Products%3C/b%3E%3C/a%3E%22);%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create AdminProductDelete.java