Hello,
You don't need to specify a struts global forward.
If you use tiles servlet, you can use a tiles definition name in place of
a page url in the struts action <forward> tag :
<action path="/test/testAction"
type="org.apache.struts.example.tiles.test.TestActionTileAction">
<forward name="success" path="test.struts.action"/>
<forward name="failure" path="test.struts.action.fail"/>
</action>
There is a lot of examples inside the struts-tiles.war or tiles-doc.war.
Check the code.
Cedric
"Byrne, Steven" wrote:
> 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
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>