protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
			HttpSession session = request.getSession();
        	try{
			Connection adaugareNewsConn = null; 
			ResultSet adaugareNewsResult = null;
			Statement adaugareNewsStatement = null;
			PreparedStatement adaugareNewsPStatement = null;
			String adaugareNewsQuery = "insert into noutati (mesaj,data,ora,idProiect) values (?, ?, ?, ?)";
			String idProiectQuery = "select idProiect from proiect where denumire='"+session.getAttribute("denumireProiect")+"'";
			System.out.println("DenumireProiect: "+session.getAttribute("denumireProiect"));
				try{
					adaugareNewsConn=ConnectionManager.getConnection();
					adaugareNewsStatement=adaugareNewsConn.createStatement();
					adaugareNewsResult=adaugareNewsStatement.executeQuery(idProiectQuery);
					
					String idProiect = null;
					if(adaugareNewsResult.next()){
						idProiect = adaugareNewsResult.getString("idProiect");
						System.out.println("Getting idProiect "+idProiect);
					}
				
				
					adaugareNewsPStatement=adaugareNewsConn.prepareStatement(adaugareNewsQuery);
					
					Date currentDatetime = new Date(System.currentTimeMillis());
					
					adaugareNewsPStatement.setString(1,request.getParameter("mesaj"));
					adaugareNewsPStatement.setDate(2,new java.sql.Date(currentDatetime.getTime()));
					adaugareNewsPStatement.setTime(3,new java.sql.Time(currentDatetime.getTime()));
					adaugareNewsPStatement.setInt(4,Integer.parseInt(idProiect));
					
					adaugareNewsPStatement.executeUpdate();
				}catch(Exception ex){System.out.println("Error getting idProiect/inserting news: "+ex);}
				finally{
					if(adaugareNewsResult!=null){
						try{
							adaugareNewsResult.close();
						}catch(Exception e){}                   
	                	adaugareNewsResult=null;
	            	}
					if(adaugareNewsStatement!=null){
                		try{
							adaugareNewsStatement.close();
						}catch(Exception e){}
		                adaugareNewsStatement=null;
					}
					if(adaugareNewsConn!=null){
						try{
							adaugareNewsConn.close();
						}catch(Exception e){}
						adaugareNewsConn=null;
					}
        		}
				
				String referer = request.getHeader("Referer");
				response.sendRedirect(referer);
        	}catch(Throwable  theException){System.out.println("Exception is"+theException);}     
	}