I should add that when I posted my solution, I had the wrong class used on my action, it should read:
<action path="/Welcome" type="org.apache.struts.actions.ForwardAction" parameter="mainLayout.welcome"/>
I think I originally said I used ActionForward, not ForwardAction.
Craig W. Tataryn
From: "Hibbs, David" <[EMAIL PROTECTED]>
To: 'Craig Tataryn' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: RE: [Tiles] tiles controller not processing tiles request
Date: Fri, 12 Dec 2003 13:50:03 -0600
this was recently discussed. see the archives:
http://marc.theaimsgroup.com/?l=struts-user&m=107106764606173&w=2
BTW, specifying the controller is redundant if you specify the tiles plugin.
--David
> -----Original Message----- > From: Craig Tataryn [mailto:[EMAIL PROTECTED] > Sent: Friday, December 12, 2003 11:52 AM > To: [EMAIL PROTECTED] > Subject: [Tiles] tiles controller not processing tiles request > > > Hey guys, I have the following in my struts-config.xml: > > <global-forwards> > <forward name="welcome" path="mainLayout.welcome"/> > </global-forwards> > > <controller > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/> > > <plug-in className="org.apache.struts.tiles.TilesPlugin"> > <set-property property="definitions-config" > value="/WEB-INF/tiles-defs.xml"/> > <set-property property="moduleAware" value="true"/> > <set-property property="definitions-parser-validate" value="true"/> > </plug-in> > > > My tiles-defs.xml file looks like this: > > <tiles-definitions> > > <definition name="mainLayout" path="/html/mainLayout.jsp"> > <put name="header" value="/html/header.jsp" /> > <put name="left" value="" /> > <put name="main" value="" /> > <put name="footer" value="/html/footer.jsp" /> > </definition> > > <definition name="mainLayout.welcome" extends="mainLayout"> > <put name="body" value="Welcome.do?dispatchAction=initialize"/> > </definition> > </tiles-definitions> > > Now, when I goto http://localhost:8080/mywebapp/ the > "welcome" forward is > invoked which is supposed to forward to the > "mainLayout.welcome" definition. > However Tomcat comes back with a "HTTP Status 404 - > /aclpo/mainLayout.welcome - The requested resource > (/mywebapp/mainLayout.welcome) is not available" > > Any ideas what might be happening? > > Thanks, > > Craig W. Tataryn > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=ht tp%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]