(Oops - that should read 'Subtle problem...') Hello All,
I've dug a bit deeper and I still think something rather strange is happening deep in the bowels of Struts/Tiles. If my tile definition uses the controllerClass attribute to specify a controller for my JSP, then I am stuck with an org.apache.struts.tiles.Controller, which knows nothing about ActionForms: for my application, this is a problem. If my tile definition uses the controllerUrl attribute to specify the URL of a Struts action, then a bit of debugging shows something interesting happening. Use of the controllerUrl attribute results in a UrlController being created: its perform() method gets a RequestDispatcher rd for the target URL from the servlet context. It then calls rd.include(), which should cause the resource to be accessed. In my 'client' view, i.e. a simple, non-nested Tiles layout, UrlController.perform() is invoked, and this results in my Struts Action class/method being invoked as expected. In my 'admin' view, i.e. a nested Tiles layout, UrlController.perform() is invoked - with exactly the same URL - but my Struts Action class/method is NOT invoked. I really don't know enough about the workings of servlet containers or the Struts/Tiles framework to understand why the 'nested' case shouldn't work: it looks like it should. However, from a functional point of view, this strikes me as a bug. Anyone got any ideas? Thanks, Neil Pattinson. -----Original Message----- From: Neil Pattinson Sent: 16 January 2004 14:31 To: [EMAIL PROTECTED] Subject: Sublte problem with nested Tiles and Struts Actions Hello All, I am using Struts with Tiles to build a nested layout, and have hit some wierdness: any comments/help much appreciated. <...snip (detailed description)...> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

