protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		Date introduced = null;
		Date discontinued = null;
		Company company = new Company();
		String name= request.getParameter("name");	
		int id= Integer.parseInt(request.getParameter("id"));	
		//On parse en date
		String introducedString = request.getParameter("introduced");
		System.out.println("date non parsée= "+introducedString);
		if (!introducedString.equals("")) {
			DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
			try {
				introduced = df.parse(introducedString);
			} catch (ParseException e1) {
				e1.printStackTrace();
			}
		}
		// On parse en date
		String discontinuedString = request.getParameter("discontinued");
		if (!discontinuedString.equals("")) {
			DateFormat df2 = new SimpleDateFormat("yyyy-MM-dd");
			try {
				discontinued = df2.parse(discontinuedString);
			} catch (ParseException e1) {
				e1.printStackTrace();
			}
		}
		String companyName= request.getParameter("companyName");
		
		
		Computer c=new Computer();
		c.setCompanyName(companyName);
		if (discontinued != null){
		c.setDiscontinued(discontinued);}
		c.setId(id);
		if (introduced != null){
		c.setIntroduced(introduced);}
		c.setName(name);
		
		CompanyService companyService = new CompanyService();
		
		//On chope la compagnie à partir du nom
		try {
			company= companyService.findCompany(companyName);
		} catch (InstantiationException | IllegalAccessException
				| ClassNotFoundException | SQLException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		List<Company> companyList = new ArrayList<Company>();
			
		try {
			companyList= companyService.displayCompanies();
		} catch (InstantiationException | IllegalAccessException
				| ClassNotFoundException | SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		request.setAttribute("companyList", companyList);
		request.setAttribute("computer", c);
		request.setAttribute("comp", company);
		request.setAttribute("introducedString", introducedString);
		request.setAttribute("discontinuedString", discontinuedString);
		getServletContext().getRequestDispatcher("/updateComputer.jsp").forward(request, response);
		
	}