Hi I have been looking at Tiles 2 and would like to get my application
up to this release. I have an application that uses Struts Tiles
without Struts the code in my application looks like this:
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);
How can I convert this to Tiles 2 I see that some or all of the
classes above are no longer available in Tiles 2. Has someone tried to
use Tiles 2 standalone.
Thanks for your help.
Srikanth