tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste GAILLARD <baptiste.gaill...@gmail.com>
Subject Re: Struts links in tiles item
Date Thu, 11 Oct 2007 14:28:05 GMT
Antonio Petrelli a écrit :
> 2007/10/11, Baptiste GAILLARD <baptiste.gaillard@gmail.com>:
>   
>>         <c:forEach var="item" items="${leftMenuLinks}">
>>                 <tr>
>>                         <td><a href="${item.link}"
>> />">${item.value}</a></td>
>>                 </tr>
>>         </c:forEach>
>>     
>
> Doesn't it work? It seems ok to me.
>
> Antonio
>
>   
The problem isn't in the JSP page in fact, but in the tiles.xml.

I've tried that:
        <definition name="leftMenu" extends="generalMenu" 
template="/pages/components/linkmenu.jsp">
            <put-list-attribute name="leftMenuLinks">
                <item value="List Users" link="&lt;s:url action= &quot; 
list &quot; / &gt;" />
                <item value="New User" link="&lt;s:url action= &quot; 
list &quot; / &gt;" />
                <item value="Datatable Test" link="&lt;s:url action= 
&quot; list &quot; / &gt;" />
            </put-list-attribute>
        </definition>

but this doesn't work
 what I want is :

        <definition name="leftMenu" extends="generalMenu" 
template="/pages/components/linkmenu.jsp">
            <put-list-attribute name="leftMenuLinks">
                <item value="List Users" link="<s:url action="list" / >" />
                <item value="New User" link="<s:url action= "list" />" />
                <item value="Datatable Test" link="<s:url action= "list" 
/ >" />
            </put-list-attribute>
        </definition>

but this isn't valid as I have double quotes inside double quotes (link 
attribut of item markup), with simple quotes inside double quotes and 
double quotes inside simple quotes it doesn't work either.

Do you understand what I want to do here ?

Thanks,

Baptiste


Mime
View raw message