HttpServletResponse response)
throws Exception {
System.out.println( "Start dynamic definition" );
// Create template definition
ComponentDefinition definition = new ComponentDefinition();
String path = "/tutorial";
// set definition 'contents'
//definition.setTemplate( "/tutorial/basic/myFramesetLayout.jsp" );
definition.put( "title", "My first dynamic frameset page", true );
// using type="string" is the same as direct=true
definition.put( "header", path + "/common/header.jsp", "string", null );
definition.put( "footer", path + "/common/footer.jsp", true );
definition.put( "menu", path + "/basic/menu.jsp", true );
definition.put( "body", path + "/basic/helloBody.jsp", true );
System.out.println( "definition=" + definition );
// Save our definition as a bean :
request.setAttribute( "templateDefinition", definition );