int year = Integer.parseInt(yearAsStriing);
int month = Integer.parseInt(monthAsString)-1;
cal.set(Calendar.YEAR, year);
cal.set(Calendar.MONTH, month);
logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
view = new LogSummaryByMonthView();
registerObjectsForNavigation(blog, blog.getBlogForMonth(year, month+1));
} else if (yearAsStriing != null && yearAsStriing.length() > 0) {
cal.set(Calendar.YEAR, Integer.parseInt(yearAsStriing));
logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR));
view = new LogSummaryByYearView();
} else {
// get the log for this monthAsString
logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
view = new LogSummaryByMonthView();
registerObjectsForNavigation(blog, blog.getBlogForThisMonth());
}
SimpleDateFormat yearFormatter = new SimpleDateFormat("yyyy", Locale.ENGLISH);
yearFormatter.setTimeZone(blog.getTimeZone());