I think the problem is that you're using the logic:forward tag. That tag uses the RequestDispatcher to do the forward which doesn't give Tiles a chance to step in and interpret your tile name into something the RequestDispatcher can handle.

Regardless, I recommend you don't use the logic:forward tag because it's performing business logic in the view layer (jsp).

David



From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
To: "'Struts Developers List'" <[EMAIL PROTECTED]>
CC: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: Using tiles def in global forwards broken?
Date: Wed, 5 Mar 2003 15:20:17 -0500

David,

Would you mind helping me out? Could you compare my information with yours?

Struts Version: jakarta-struts-1.1-rc1
In Welcome page (default page):
    <%@ taglib uri="struts-logic" prefix="logic"%>
    <logic:forward name="test"/>



In Struts config:
    ...
      <global-forwards>
        <forward name="test" path="test.defaultLayout"/>
      </global-forwards>

...

<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-debug" value="2"/>
<set-property property="definitions-parser-details" value="2"/>
<set-property property="definitions-parser-validate" value="true"/>
</plug-in>




In tiles-defs.xml:
    ...
    <tiles-definitions>
        <definition name="test.defaultLayout"
path="/WEB-INF/jsp/layouts/defaultLayout.jsp">
          <put name="header" value="/WEB-INF/jsp/common/header.jsp"/>
          <put name="menubar" value="/WEB-INF/jsp/common/menubar.jsp"/>
          <put name="body-content"
value="/WEB-INF/jsp/common/body-content.jsp"/>
          <put name="footer" value="/WEB-INF/jsp/common/footer.jsp"/>
        </definition>
    </tiles-definitions>











-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Using tiles def in global forwards broken?


Works fine for me.


David



>From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
>Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Using tiles def in global forwards broken?
>Date: Wed, 5 Mar 2003 14:40:22 -0500
>
>Chucks book contains an example of using a tiles definition in a global
>forward (See page 347).  This example does not work in
>jakarta-struts-1.1-rc1.  Is this a bug or did this feature never exist?
>
>Regards,
>
>Joshua White
>
>
>This communication, including attachments, is for the exclusive use of
>addressee and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, any use, copying,
>disclosure, dissemination or distribution is strictly prohibited. If
>you are not the intended recipient, please notify the sender
>immediately by return email and delete this communication and destroy all
>copies.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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


This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all copies.



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


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to