// seperate the entries as specified: day, month, year
Map entryMap = seperateByPeriod(entries, form.getFileBy());
// now export each List in the entryMap
ExportRss exporter = new ExportRss(rreq.getWebsite());
String exportTo = form.getExportFormat().toLowerCase();
if ("atom".equals(exportTo))
{
exporter.setExportAtom(true);
}
ArrayList fileNames = new ArrayList();
Iterator it = entryMap.keySet().iterator();
while(it.hasNext())
{
String key = (String)it.next();
ArrayList list = (ArrayList)entryMap.get(key);
exporter.exportEntries(list, key+"_"+exportTo+".xml");
fileNames.add("Exported " + list.size() + " entry(s) to " + key+"_"+exportTo+".xml<br />");
//System.out.println("Exported: " + list.size() + " entries for " + key);
}
StringBuffer fileMessage = new StringBuffer();