tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: How to use import attribute?
Date Thu, 16 Jul 2009 08:19:54 GMT
2009/7/16 Roshni Basu <roshniblr@gmail.com>:
> <tiles2:insertDefinition  name="main.top">
> <tiles2:importAttribute name="enableID" />
> <c:out value="${enableID}"></c:out>
> </tiles2:insertDefinition>


Wait a minute, now I understand.
You are trying to insert the definition "main.top". The code above is
invalid, since:
1. in <tiles:insertDefinition> you can override attribute values by
using <tiles:putAttribute>
2. <tiles:importAttribute> imports attribute that are available in
that JSP, not the inserted ones.

But since "enableID" is already put by <put-attribute>, why do you
want to read it here?

Antonio

Mime
View raw message