@@ -0,0 +1,1290 @@
+%0Apackage edu.asu.se.helpers;%0A%0A%0Aimport java.io.IOException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport edu.asu.se.model.Patient;%0Aimport edu.asu.se.model.PatientDAO;%0Aimport edu.asu.se.utils.ICommand;%0A%0Apublic class AddPatient implements ICommand %7B%0A%0A%09@Override%0A%09public void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException %0A    %7B%0A%09%09PatientDAO e = new PatientDAO();%0A        String uname = request.getParameter(%22uname%22);%0A%09%09String pwd = request.getParameter(%22pwd%22);%0A%09%09String fname = request.getParameter(%22fname%22);%0A%09%09String lname = request.getParameter(%22lname%22);%0A%09%09String gender = request.getParameter(%22gender%22);%0A%09%09String email = request.getParameter(%22email%22);%0A%09%09String mobileNumber = request.getParameter(%22mobilenumber%22);%0A%09%09String address = request.getParameter(%22address%22);%0A%09%09String zipCode = request.getParameter(%22zipcode%22);%0A%09%09String age = request.getParameter(%22age%22);%0A%0A%09%09Patient previousPatient = findPatientWithUser(uname);%0A%0A        if (previousPatient != NULL)%0A        %7B%0A%09%09    request.setAttribute(%22patient%22, previousPatient);%0A%0A%09%09    request.getRequestDispatcher(%22/views/viewPatient.jsp%22).forward(request,%0A%09%09%09%09    response);%0A        %7D%0A%09%7D%0A%0A%7D%0A

Create EditPatient.java