{
ActionForward forward = mapping.findForward("editPages.page");
try
{
WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
RollerRequest rreq = RollerRequest.getRollerRequest(request);
RollerSession rses = RollerSession.getRollerSession(request);
request.setAttribute("model", new BasePageModel(
"pagesForm.title", request, response, mapping));
WebsiteData website = rreq.getWebsite();
if (website == null && form.getId()!=null)
{
UserManager mgr = RollerFactory.getRoller().getUserManager();
WeblogTemplate template = mgr.getPage(form.getId());
website = template.getWebsite();