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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to