protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
			HttpSession session = request.getSession();
        	try{
			Connection adaugareEvenimentConn = null; 
			ResultSet adaugareEvenimentResult = null;
			Statement adaugareEvenimentStatement = null;
			PreparedStatement adaugareEvenimentPStatement = null;
			String adaugareEvenimentQuery = "insert into eveniment (denumire,data,prezentator,idProiect) values (?, ?, ?, ?)";
			String idProiectQuery = "select idProiect from proiect where denumire='"+session.getAttribute("denumireProiect")+"'";
				try{
					adaugareEvenimentConn=ConnectionManager.getConnection();
					adaugareEvenimentStatement=adaugareEvenimentConn.createStatement();
					adaugareEvenimentResult=adaugareEvenimentStatement.executeQuery(idProiectQuery);
					
					String idProiect = null;
					if(adaugareEvenimentResult.next()){
						idProiect = adaugareEvenimentResult.getString("idProiect");
					}
				
					String dataEvenimentInput = request.getParameter("dataEveniment");
					SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
					java.util.Date dataEveniment = format.parse(dataEvenimentInput);
					java.sql.Date dataEv = new java.sql.Date(dataEveniment.getTime());
				
					adaugareEvenimentPStatement=adaugareEvenimentConn.prepareStatement(adaugareEvenimentQuery);
					
					adaugareEvenimentPStatement.setString(1,request.getParameter("denumireEveniment"));
					adaugareEvenimentPStatement.setDate(2,dataEv);
					adaugareEvenimentPStatement.setString(3,request.getParameter("prezentatorEveniment"));
					adaugareEvenimentPStatement.setInt(4,Integer.parseInt(idProiect));
					
					adaugareEvenimentPStatement.executeUpdate();
				}catch(Exception ex){System.out.println("Error getting idProiect/inserting Eveniment: "+ex);}
				finally{
					if(adaugareEvenimentResult!=null){
						try{
							adaugareEvenimentResult.close();
						}catch(Exception e){}                   
	                	adaugareEvenimentResult=null;
	            	}
					if(adaugareEvenimentStatement!=null){
                		try{
							adaugareEvenimentStatement.close();
						}catch(Exception e){}
		                adaugareEvenimentStatement=null;
					}
					if(adaugareEvenimentConn!=null){
						try{
							adaugareEvenimentConn.close();
						}catch(Exception e){}
						adaugareEvenimentConn=null;
					}
        		}
				
				String referer = request.getHeader("Referer");
				response.sendRedirect(referer);
        	}catch(Throwable  theException){System.out.println("Exception is"+theException);}     
	}