[opencms-dev] Re: Include body content between sites

François-Léonard Gilbert gilbertf at gmail.com
Wed Apr 12 15:14:49 CEST 2006


This looks quite complicated, and it introduces the possibility of a
security breach...

I suggest making a sibling of test.html in "/sites/site2/".


On 4/12/06, Thomas März <thomas.maerz at gmail.com> wrote:
> I did not run the code, but it should work.
>
> | CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
> | String siteRoot = cms.getRequestContext().getSiteRoot();
> | cms.getRequestContext().setSiteRoot("");
> | cms.include("/sites/site1/test.html, "body");
> | cms.getRequestContext().setSiteRoot(siteRoot);
>



More information about the opencms-dev mailing list