Hello,

  Use the <tiles:importAttribute name="MODE" /> tag in order to import your
attribute from tiles context to current page context.
   Tiles attributes are stored in what we call tile context (one context for each
inserted tile). Struts tags work on attribute from page, request or application
contexts. So you need to import tags from one context to another. Check Tiles
documentation for more about the tag <tiles:import .../>.

    Hope this help,

     Cedric


"Struts Newsgroup (@Basebeans.com)" wrote:

> Subject: Tile and parameters use...
> From: "PitBull" <[EMAIL PROTECTED]>
>  ===
> Hi all,
>
> I have the following situation:
> <%@ taglib uri="/WEB-INF/conf/tiles.tld" prefix="tiles" %>
>
> <tiles:insert page="/Layout.jsp" flush="true">
>  <tiles:put name="title" value="My page" />
>  <tiles:putList name="jsList">
> ....................
> </tiles:putList>
>  <tiles:put name="object" value="/object.jsp"/>
>   ?? <tiles:put name="MODE" value="OBJECTSELECT" />??
>   <tiles:put name="objectSrc" value="/objectSrc.jsp"/>
> </tiles:insert>
>
> I put "<tiles:put name="MODE" value="OBJECTSELECT" />" because i need
> "OBJECTSELECT" and "CHOICE" as parameters to manage two different contexts
> inside the jsp "objectSrc.jsp".
> e.g.: In the file objectSrc.jsp I have to do something like that:
> <logic:equal name="MODE" value="OBJECTSELECT">
>     do A
> </logic:equal>
> <logic:equal name="MODE" value="CHOICE">
>     do B
> </logic:equal>
>  That not run.
> Can anyone help me to solve this problem plz? Thanx
>
> Pit
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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

Reply via email to