ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res)
throws Exception
{
ActionForward forward = mapping.findForward("referers.page");
RollerRequest rreq = RollerRequest.getRollerRequest(req);
RollerSession rollerSession = RollerSession.getRollerSession(req);
RefererManager refmgr = RollerFactory.getRoller().getRefererManager();
try
{
if (rreq.getWebsite() != null
&& rollerSession.isUserAuthorizedToAuthor(rreq.getWebsite()) )
{
BasePageModel pageModel = new BasePageModel(
"referers.todaysReferers", req, res, mapping);
req.setAttribute("model", pageModel);
req.setAttribute("pageHits",
new Integer(refmgr.getDayHits(rreq.getWebsite())));
req.setAttribute("totalHits",
new Integer(refmgr.getTotalHits(rreq.getWebsite())));
List refs = refmgr.getTodaysReferers(rreq.getWebsite());
req.setAttribute("referers",refs);
}
}
catch (Exception e)
{