@Override
  public void requestInitialized(ServletRequestEvent sre) {

    ServletContext context = sre.getServletContext();
    ServletRequest request = sre.getServletRequest();


    synchronized (context){
        
       int tempDay, tempMonth;

        Date date = new Date();
        Calendar calendar = GregorianCalendar.getInstance();
        calendar.setTime(date); 
        
        tempDay = calendar.get(Calendar.DAY_OF_MONTH);
        tempMonth = calendar.get(Calendar.MONTH);
        
        if (Month == -1 ){
            
            lastDay = tempDay;
            Month = tempMonth; 
            for (int i = 1; i < 32 ; i++){
                TotalMonthEdits[i] = 0;
            }
        }
        
        if ( (((HttpServletRequest)request).getRequestURI()).equals("/imagestuck/EditImage.do") ) {
            
        totalEdits++;
 
            if ( tempMonth - Month  > 1 ){

                for (int i = 1; i < 32 ; i++){
                    TotalMonthEdits[i] = 0;
                }

            }

            if ( tempMonth - Month == 0){

                TotalMonthEdits[tempDay]++;

            }
          }

            

        
    Month = tempMonth;
    lastDay = tempDay;
        
    }//synchronized

  }