. RSS 2.0 example template

. Mimetype support fixed in TemplateContentServlet
. Textbox made larger for creating/editing inline plain text content

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2017 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2005-12-09 12:11:08 +00:00
parent eff037cdea
commit d63e6da00a
4 changed files with 51 additions and 2 deletions

View File

@@ -143,6 +143,13 @@ public class TemplateContentServlet extends HttpServlet
templateRef = new NodeRef(storeRef, t.nextToken());
}
String mimetype = MIMETYPE_HTML;
if (req.getParameter(ARG_MIMETYPE) != null)
{
mimetype = req.getParameter(ARG_MIMETYPE);
}
res.setContentType(mimetype);
// get the services we need to retrieve the content
WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
ServiceRegistry serviceRegistry = (ServiceRegistry)context.getBean(ServiceRegistry.SERVICE_REGISTRY);