public ActionForward initBestSellingReport(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws ApplicationException, OperationException {
  ActionForward fwd=init(mapping,form,request,response);
  if (fwd != null)   return fwd;
  SellingItemForm reportForm=(SellingItemForm)form;
  String timePeriod=ReportDateManager.TODAY;
  String dateRange=Constants.FIXED_DATE_RANGE;
  reportForm.setTimePeriod(timePeriod);
  reportForm.setDateRange(dateRange);
  reportForm.setFromDate("");
  reportForm.setToDate("");
  reportForm.validate(mapping,request);
  return mapping.findForward(INIT_BEST_SELLING_REPORT);
}

public ActionForward initBestSellingReport ( ActionMapping mapping , ActionForm form , HttpServletRequest request , HttpServletResponse response ) throws ApplicationException , OperationException { ActionForward fwd = init ( mapping , form , request , response ) ; if ( fwd != null ) return fwd ; SellingItemForm reportForm = ( SellingItemForm ) form ; String timePeriod = ReportDateManager . TODAY ; String dateRange = Constants . FIXED_DATE_RANGE ; reportForm . setTimePeriod ( timePeriod ) ; reportForm . setDateRange ( dateRange ) ; reportForm . setFromDate ( "" ) ; reportForm . setToDate ( "" ) ; reportForm . validate ( mapping , request ) ; return mapping . findForward ( INIT_BEST_SELLING_REPORT ) ; }
initialise best selling items report
