HttpServletResponse response)
throws IOException, ServletException {
ActionForward forward = mapping.findForward("weblogEdit.page");
try {
RollerSession rses = RollerSession.getRollerSession(request);
RollerRequest rreq = RollerRequest.getRollerRequest(request);
if (rreq.getWebsite() != null
&& rses.isUserAuthorized(rreq.getWebsite())) {
WeblogEntryFormEx form = (WeblogEntryFormEx)actionForm;
form.initNew(request, response);
form.setCreatorId(rses.getAuthenticatedUser().getId());
form.setWebsiteId(rreq.getWebsite().getId());
form.setAllowComments(rreq.getWebsite().getDefaultAllowComments());
form.setCommentDays(new Integer(rreq.getWebsite().getDefaultCommentDays()));
request.setAttribute("model",
new WeblogEntryPageModel(request, response, mapping,
(WeblogEntryFormEx)actionForm,
WeblogEntryPageModel.EDIT_MODE));