2007/12/22, Srikanth Jagannath <[EMAIL PROTECTED]>:
> String definitionName = ???;
>    // Get the definition (add appropriate catch)
>  ComponentDefinition definition
> = DefinitionsUtil.getDefinition(definitionName, request,
> getServletContext());
>    // Create new Tiles context, initialized with the definition
>  ComponentContext context = new ComponentContext(
> definition.getAttributes() );
>    // Save context where the tiles will find it
>  ComponentContext.setContext( tileContext, request);
>     // Include the tiles
>  String uri = definition.getPath();
>  RequestDispatcher rd = getServletContext().getRequestDispatcher(uri);
>  rd.include(request, response);

Look at this:
http://tiles.apache.org/tutorial/advanced/runtime.html

Ciao
Antonio

Reply via email to