throws IOException, ServletException
{
ActionForward forward = mapping.findForward("removePage.page");
try
{
RollerSession rses = RollerSession.getRollerSession(request);
RollerRequest rreq = RollerRequest.getRollerRequest(request);
WeblogTemplate page = (WeblogTemplate) rreq.getPage();
WebsiteData website = page.getWebsite();
if ( rses.isUserAuthorizedToAdmin(website) )
{
WeblogTemplateForm form = (WeblogTemplateForm)actionForm;
form.copyFrom(page, request.getLocale());
addModelObjects(request, response, mapping, page.getWebsite());
BasePageModel pageModel = new BasePageModel(
"editPages.title.removeOK", request, response, mapping);
pageModel.setWebsite(website);
request.setAttribute("model", pageModel);
UserData ud = rses.getAuthenticatedUser();
request.setAttribute("user",ud);
}
else
{
forward = mapping.findForward("access-denied");