Assembling a Web page with all of its content
If you publish to a Publication Target with the Target Language set to the value "REL" (Render Engine Language); that is, if you publish your output in TCDL, then you can assemble (that is, retrieve and run) a published Page directly from the Content Data Store.
By assembling the published Page, you render all code contained in the Page itself and in all Component Presentations on that Page. To assemble the Page, run the following code (JSP example):
PageContentAssembler assembler = new PageContentAssembler();
String pageContent = assembler.getContent("tcm:2-587-64", new HashMap<String, String>());
A comparable ASP.NET example would be:
<%@ Page Language="C#" Debug="true" %>
<%@ Import Namespace="Tridion.ContentDelivery.DynamicContent"%>
<%@ Import Namespace="Tridion.ContentDelivery.Web.Linking"%>
<%
PageContentAssembler assembler = new PageContentAssembler();
// Publication ID is 8, Item reference ID is 70
String pageContent = assembler.GetContent(8, 70);
Response.Write(pageContent);
%>