2011/9/9 Muneer Malik <[email protected]> > ok - thanks > > I had to extend the ServletDispatcherResult and everything seems to be > working including the MutableTiles Container > > now for the below code: > > > MutableTilesContainer container = TilesAccess.getContainer( > request.getSession().getServletContext()); > Definition definition = new Definition(); > definition.setTemplate("/layouts/my_layout.jsp"); > definition.putAttribute("body", new Attribute("/tiles/body.jsp"); > container.register(definition, request, response); > > > do I need the container.render as well,since I get a blank page for the above? > > You forgot to call "setName" with the name of the definition, after that, since you are using a Tiles result in Struts, be sure that the Tiles result has the same name as the definition you have set.
> Also Can a MutabletilesContainer and > > > TilesContainer container = TilesAccess.getContainer(servletContext); > > > reside together? > > A MutableTilesContainer is a TilesContainer. Antonio
