Skip to main content
Tweeted twitter.com/StackTridion/status/857272471497605120
added 4 characters in body; edited tags; edited title
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Why does the component presentation assemblerComponent Presentation Assembler not execute JSP code?

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?

Why does the component presentation assembler not execute JSP code?

We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

  ComponentPresentationAssembler componentPresentationAssembler 
                                 = new ComponentPresentationAssembler(127); 
  out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the component template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?

Why does the Component Presentation Assembler not execute JSP code?

We're busy upgrading to Web 8.5, and I'm having some problems with JSP Dynamic Component Presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

ComponentPresentationAssembler componentPresentationAssembler 
                                 = new ComponentPresentationAssembler(127); 
out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 Broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the Component Template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?

added 77 characters in body
Source Link
Dominic Cronin
  • 18.5k
  • 3
  • 23
  • 74

We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

  ComponentPresentationAssembler componentPresentationAssembler 
                                 = new ComponentPresentationAssembler(127); 
  out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the component template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?

We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

  ComponentPresentationAssembler componentPresentationAssembler = new ComponentPresentationAssembler(127); 
  out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the component template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?

We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

  ComponentPresentationAssembler componentPresentationAssembler 
                                 = new ComponentPresentationAssembler(127); 
  out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the component template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?

Source Link
Dominic Cronin
  • 18.5k
  • 3
  • 23
  • 74

Why does the component presentation assembler not execute JSP code?

We're busy upgrading to Web 8.5, and I'm having some problems with JSP dynamic component presentations. These are correctly deployed to disk, and the ComponentPresentationFactory is able to locate my test DCP. However, when I invoke the ComponentPresenationAssembler like this:

  ComponentPresentationAssembler componentPresentationAssembler = new ComponentPresentationAssembler(127); 
  out.write(componentPresentationAssembler.getContent(513988, 243136));

then I get the same output as if I invoke the ComponentPresentationFactory 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 broker database I can see that the TEMPLATE_OUTPUT_FORMAT of the component template is, as expected, JSP Scripting.

What can cause this? Where should I be looking to get some insight into this problem?