I'm trying to figure out the "right" way to integrate Tiles and Struts.
The Tiles documentation says that if if you use the Tiles servlet
instead of the standard Struts one, you can forward to a tiles
definition defined in the tilesDefinitions.xml file by name.
What I had to do was:
1) set up a global forward mapping the definition name to a local
action name
2) set up a simple action mapping that forward to the actual
definition in the tilesDefinitions.xml file
This seems somewhat more involved than it needs to be. Clearly there
needs to be support for finding forwards based
on the tiles definition name. But if I'm forwarding directly to a top
level tiles definition, it seems a bit extreme to have to go through
adding definitions in *two* places in the struts-config.xml file just to
support it.
Am I missing something? Have I forgotten to somehow configure the
execution environment for the html: tags so that they are using the
right classes to understand how to interpret tiles deifnition references
correctly?
Steve