We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentationsDynamic Component Presentations. These are correctly deployed to disk, and the ComponentPresentationFactoryComponentPresentationFactory
is able to locate my test DCP. However, when I invoke the ComponentPresenationAssemblerComponentPresenationAssembler
like this:
ComponentPresentationAssembler componentPresentationAssembler
= new ComponentPresentationAssembler(127);
out.write(componentPresentationAssembler.getContent(513988, 243136));
then I get the same output as if I invoke the ComponentPresentationFactoryComponentPresentationFactory
like this:
com.tridion.dcp.ComponentPresentationFactory cpf
= new com.tridion.dcp.ComponentPresentationFactory(127);
com.tridion.dcp.ComponentPresentation cp = cpf.getComponentPresentation(513988, 243136);
out.write(cp.getContent());
In other words, what I see is the raw JSP code, and not the rendered output that I expected.
When I call cp.isDynamic()
, the result is false
, although I don't know whether that is significant. In the brokerBroker database I can see that the TEMPLATE_OUTPUT_FORMATTEMPLATE_OUTPUT_FORMAT
of the component templateComponent Template is, as expected, JSP Scripting
.
What can cause this? Where should I be looking to get some insight into this problem?