On Tue, 12 Oct 2004 11:59:10 +0800, PC Leung <[EMAIL PROTECTED]> wrote:
> How can I incorporate the tiles definition into struts-config.xml?
> or How to define selectBodyTile.do in struts-config.xml?
> 
> <tiles:insert definition="erp.mainLayout" flush="true"
> controller="/selectBodyTile.do"/>
> 
>     <action    path="/login"
>                type="com.security.user.LoginAction"
>                name="loginForm"
>                    scope="request"
>                    validate="true"
>                input="/Login.jsp">
>       <forward name="success" path="/SecurityMaint.jsp"/>
>       <forward name="failure" path="/Login.jsp"/>
>       <forward name="cancel" path="/Welcome.jsp"/>
>     </action>
>

I am not exactly sure what your are asking, but usually using Tiles
your forwards will point to a tile definition you have listed in your
tiles-defs.xml file. For example, instead of

<forward name="success" path="/SecurityMaint.jsp"/>

you might have

<forward name="success" path=".securityMaint"/>

where .securityMaint is defined as:

<definition name=".securityMaint" extends=".base">
        <put name="title" value="Some Title"/>
        <put name="content" value="/pages/SecurityMaint.jsp"/>
    </definition>

and the Base layout tile is defined as:

<definition name=".base" path="/tiles/layout.jsp">
        <put name="title" value="${title}"/>
        <put name="menu" value="/tiles/menu.jsp"/>
         <put name="content" value="${content}"/>
    </definition>

Hth,
Susan Bradeen

> ---------------------------------------------------------------------
> 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]

Reply via email to