[PHP]StringBuffer head = new StringBuffer();head.append("<meta name="\"product1\"" content="\"test1\"" />");head.append("<meta name="\"product2\"" content="\"test2\"" />");head.append("<meta name="\"productN\"" content="\"testN\"" />");String existingHead = (String) context.getPageScopeData().get(RuntimePage.PAGESCOPE_HEAD_INJECTION);if (existingHead != null) { /* Existing content takes precendence over this */ head.insert(0, existingHead);}context.getPageScopeData().put(RuntimePage.PAGESCOPE_HEAD_INJECTION, head.toString());[/PHP]And if, like me, the thought of manually building HTML as strings makes you itch, build it as a Dom4j Element and convert to String at the very end using [PHP]List elements = headElement.elements();for (Element el : elements) { buf.append(el.asXML()).append("\n");}[/PHP]