FYI, got really curious, so I pulled out my test web app, plugged in your definitions, created /common/layouts/baseLayout.jsp, and everything worked as expected. Here's the log:
2003-11-03 16:27:20,637 INFO TilesRequestProcessor.java tiles.TilesRequestProcessor Tiles definition factory found for request processor ''. 2003-11-03 16:27:20,652 DEBUG TilesRequestProcessor.java tiles.TilesRequestProcessor processForwardConfig(.baseLayout, true) 2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet Can't open file '/WEB-INF/tiles-defs_en_US.xml' 2003-11-03 16:27:20,652 DEBUG I18nFactorySet.java xmlDefinition.I18nFactorySet Can't open file '/WEB-INF/tiles-defs_en.xml' 2003-11-03 16:27:20,668 DEBUG TilesRequestProcessor.java tiles.TilesRequestProcessor uri=/common/layouts/baseLayout.jsp doInclude=false 2003-11-03 16:27:20,683 DEBUG TilesRequestProcessor.java tiles.TilesRequestProcessor '.baseLayout' - processed as definition in tiles-defs.xml: <tiles-definitions> <definition name=".baseLayout" path="/common/layouts/baseLayout.jsp"/> </tiles-definitions> in struts-config: <action path="/tilestest" type="org.apache.struts.actions.ForwardAction" parameter=".baseLayout"/> ... <plug-in className="org.apache.struts.tiles.TilesPlugin"> <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/> </plug-in> I didn't have a <controller> element. My test web-app didn't make use of Tiles before, I just plugged it in now. --- "Ruth, Brice" <[EMAIL PROTECTED]> wrote: > Everything else works, I'm in the midst of following Ted's refactoring > approach and moving my JSPs that have tiles:insert statements to tile > definitions that I can extend & overload. > > David Friedman wrote: > > >Tiles work with starting dots. I use it that way myself. I think I picked > >up that suggestion from Ted's book "Struts In Action". > > > >What is the exact URL you are using? Do regular non-tiles actions work for > >your webapp? > >Regards, > >David > > > >-----Original Message----- > >From: Mikael Eriksson - Swedish Connection [mailto:[EMAIL PROTECTED] > >Sent: Monday, November 03, 2003 4:29 PM > >To: Struts Users Mailing List > >Subject: Re: ForwardAction not picking up Tiles defs? > > > > > > > >One thing to try might be to use tile names that does not start with a dot. > >I have done things that look pretty similar but the tilenames was things > >like > >output.page1. The parsing might get confused or by the starting '.' > >My actions look like: > > > > <action path="/tiles_page1_in" > > type="org.apache.struts.actions.ForwardAction" > > parameter="output.page1" /> > > > > > >Regards > > > > > >At 15:26 2003-11-03 -0600, you wrote: > > > > > >>I'm ripping my hair out here, guys ... what's going on with my config?! I > >>can't see anything wrong in the debug output, yet Struts still is balking > >>at actions that use the ForwardAction class and don't have a parameter > >>that starts with a '/' ... > >> > >>Please, please help!! (currently in begging mode, bribing is next :)) > >> > >>Ruth, Brice wrote: > >> > >> > >> > >>>OK, I have simplelog set to debug and I don't see any errors - it seems > >>>to parse my tiles-def.xml just fine, from what I can see. > >>> > >>>?!? > >>> > >>>Hubert Rabago wrote: > >>> > >>> > >>> > >>>>I got this yesterday. It means Tiles didn't intercept your forward > >>>> > >>>> > >request > > > > > >>>>because 1) Tiles wasn't called or 2) Tiles didn't recognize your tile. > >>>>If you turn debug on for Tiles (org.apache.struts.tiles), it'll dump the > >>>>tiles > >>>>it'll recognize when you app starts up. Make sure yours is listed. > >>>> > >>>>I'm using a tile with a ForwardAction now, so I know it works. Hope you > >>>>find it. > >>>> > >>>>--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>I'm following the instructions provided here: > >>>>>http://jakarta.apache.org/struts/userGuide/building_view.html (section > >>>>>3.4.3) for incorporating tiles definitions in struts-config.xml, and > >>>>>when the ActionServlet receives a request for an action who's parameter > >>>>>is a tile definition name (such as .baseLayout), I get the following > >>>>> > >>>>> > >exception: > > > > > >>>>>javax.servlet.ServletException: Path .baseLayout does not start with a > >>>>>"/" character > >>>>> > >>>>>My action is defined like so: > >>>>> > >>>>> <action > >>>>> path="/US/tilestest" > >>>>> type="org.apache.struts.actions.ForwardAction" > >>>>> parameter=".baseLayout"/> > >>>>> > >>>>>And I've defined the plug-in for the Tiles requestor. > >>>>> > >>>>> <plug-in > >>>>> className="org.apache.struts.tiles.TilesPlugin"> > >>>>> <set-property > >>>>> property="definitions-config" > >>>>> value="/WEB-INF/tiles-defs.xml"/> > >>>>> </plug-in> > >>>>> > >>>>>My tiles-defs.xml has one simple entry: > >>>>> > >>>>> <definition name=".baseLayout" > >>>>> > >>>>> > >path="/common/layouts/baseLayout.jsp"/> > > > > > >>>>>within the <tiles-definitions> node. > >>>>> > >>>>>Any ideas? Thanks! > >>>>> > >>>>>-- > >>>>>Brice D. Ruth > >>>>>Sr. IT Analyst > >>>>>Fiskars Brands, Inc. > >>>>> > >>>>> > >>>>> > >>>>>--------------------------------------------------------------------- > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>>__________________________________ > >>>>Do you Yahoo!? > >>>>Exclusive Video Premiere - Britney Spears > >>>>http://launch.yahoo.com/promos/britneyspears/ > >>>> > >>>>--------------------------------------------------------------------- > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>>> > >>-- > >>Brice D. Ruth > >>Sr. IT Analyst > >>Fiskars Brands, Inc. > >> > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > Brice D. Ruth > Sr. IT Analyst > Fiskars Brands, Inc. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]