protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        try {
            String year,month;
                year=request.getParameter("year");
                month=request.getParameter("month");
                String region=request.getParameter("region");
                System.out.print(year+month+":"+region);
           String months="FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DECM";
            
     ArrayList<ArrayList<String>> results= new ArrayList<ArrayList<String>>();
     RegionIdData rid=new RegionIdData();     
    ArrayList<String> smallList=rid.getCentralCoordinate(region);
    results.add(smallList);
    
    DatabaseOutliers o1=new DatabaseOutliers(year,"JAN",region);
    Map anois_sum=o1.getAnois();         
            
    String[] monthList=months.split(" ");
    for(int i=0;i<monthList.length;i++)
    {       
            o1=new DatabaseOutliers(year,monthList[i],region);        
            Map anois_initial=o1.getAnois();
            for(Object key:anois_sum.keySet())
{ float value;
        if(anois_initial.get(key)==null)
           value=0;
        else 
        {
           value=new Float(anois_initial.get(key).toString());
           System.out.println("found now  : "+value);
           System.out.println("found before  : "+anois_sum.get(key));
           
        }
anois_sum.put(key,new Float(anois_sum.get(key).toString())/5+value);
System.out.println("summed : "+anois_sum.get(key));

}
    }
    
    
             CoordinateData c1=new CoordinateData();
             for (Object key: anois_sum.keySet()) {
            ArrayList<String> list=new ArrayList<String>();
             list=c1.getLongLat(new Long(key.toString()));
             list.add(new Float(anois_sum.get(key).toString())+"");
             list.add(key.toString());
             results.add(list);
              }
             
                request.setAttribute("result",results);   
                RequestDispatcher dispatcher=request.getRequestDispatcher("OutlierVisualisation.jsp");
                dispatcher.forward(request,response);
        } catch (SQLException ex) {
            Logger.getLogger(MonthlySpatialOutliers.class.getName()).log(Level.SEVERE, null, ex);
        }
    }