import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ProcessTrade extends HttpServlet { public static Connection conn; public static Statement stmt; public void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String m_acctnum[] = request.getParameterValues("memberId"); String transType[] = request.getParameterValues("transType"); String quantity[] = request.getParameterValues("quantity"); String symbol[] = request.getParameterValues("symbol"); double pricePerShare = 0.0; double cash = 0.0; double quant = 0.0; double amount = 0.0; double commission = 0.0; out.println("