Ok result name="tilesList" is fine but add type="tiles" make sure that .view.struts23.welcome is in your tiles.xml as a name of a definition
On 8/25/07, Darryl Thompson <[EMAIL PROTECTED]> wrote: > > Pavel, > > Thanks for the reply and yes I have covered the basics: > tiles jars (api, core, jsp) for > 2.0.4org.apache.struts2.tiles.StrutsTilesListener defined in > web.xmltiles.xml (for struts2) under WEB-INFstruts.xml package that > extends tiles-defaultMy Struts2 action returns a string that points to a > Tiles2 definition in the tiles.xml file but I get exception that no tiles > def by that name is found. > This is a stanza from struts.xml: > <action name="storyAction_*" method="{1}" class="demo.StoryAction"> > <result name="tilesList">.view.struts23.welcome</result> > <result name="view">pages/storyProfileView.jsp</result> > </action> > The action returns "tilesList" and ".view.struts23.welcome" is not found > even though it is in the tiles.xml contains a definition by that name. > > So, my issue is that the tiles.xml file does not seem to be available for > processing at run-time. I have not found a SINGLE tutorial that will show a > working example no matter how simple of a web app containing both s1/tiles1 > and s2/tiles2. > > If you know of such an example please send me the link > > Thanks > > > ----- Original Message ---- > From: Pavel Sapozhnikov <[EMAIL PROTECTED]> > To: Struts Users Mailing List <user@struts.apache.org> > Sent: Saturday, August 25, 2007 8:09:33 PM > Subject: Re: Struts1/Tiles and Struts2/tiles in same app > > Well there are definitely some tutorials on the net how to start this > thing > with Tiles2. You have to include a servlet in web.xml and make sure to put > a > result type to struts.xml and when you want to use tiles just use result > type tiles. Also make sure all your necessary jars are in place. I heard > s2 > plugin is not really necessary however I dont know how to do tiles without > that plugin. Then also have your tiles.xml file and put definitions there > make sure you have your base layout page then it struts.xml whatever you > name your definition in tiles.xml you point your result to it. You can > also > point right to a jsp but I also dont know how to do that. But I definately > know that tiles.xml defintions work cuz I've tried it myself so. Good > luck. > > On 8/25/07, Darryl Thompson <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I have production application written using Struts1.2 and Tiles 1, and I > > need to implement the new Struts2/Tiles 2 features within the same web > app. > > I have not found any good documentation that explains how to do this. I > have > > created a simple Struts1/Tiles1 app that also has Struts2/Tiles2 in it. > I am > > able to access the Struts1/Tiles1 components and I can even get to the > > Struts2 actions but the Struts2 app cannot get to the Tiles2 > definitions. > > > > Can any provide a sample app or config info on how its done? > > > > Many thanks > > Darryl > > > > > > > -- > Pavel Sapozhnikov > xFact, Inc > [EMAIL PROTECTED] > > > > > -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]