Hi Srikanth,
I think you will have to look at the source code to work out what the new Tiles2
classes are.
Try starting with TilesListener. I think that is the class that you would use in
a webapp to launch Tiles2.
regards
Adam
Srikanth Jagannath on 22/12/07 01:14, wrote:
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