Tiles action forward gives error message
1 posts in topic
Flat View  Flat View

Posted By:   Adam_Shepherd
Posted On:   Saturday, December 6, 2003 08:57 PM

I'm trying to use the tiles definition as an action forward but I keep getting a message about the path needing a "/" infront. I've read other comments about this problem but no one says what causes this problem? I'm using Struts 1.1. When I debug it says that it's trying to launch a uri? Is it not seeing the definition?

Any insight on this would be greatly appreciated.


Adam Shepherd

Re: Tiles action forward gives error message

Posted By:   Jim_Jackson  
Posted On:   Monday, December 8, 2003 10:07 AM

You don't need a "/" in front. I use a global forward. The forward's name can match its path. The path is the tile definition's name. For example:

From the IndexAction class:

return mapping.findForward("indexTile");
// in actual code replaced hard-coded string with constant

From struts-config.xml:

From tiles-def.xml::

About | Sitemap | Contact