On Wed, 2014-08-20 at 09:32 -0700, Chris Pratt wrote:
> This should work:
> 
> <!DOCTYPE html>
> <c:set var="layoutDef" value="application"/>
> <c:if test="${!currentComplexApplication.complex}">
>     <c:set var="layoutDef" value="single"/>
> </c:if>
> <tiles:insert definition=".${layoutDef}.layout">


You can also put everything on one line like

<c:set var="layoutDef" value="application"/><c:if 
test="${!currentComplexApplication.complex}"><c:set var="layoutDef" 
value="single"/></c:if><tiles:insert definition=".${layoutDef}.layout">


Although that's a messy way to do it.
~mck

-- 
"There are only two ways to live your life. One is as though nothing is
a miracle. The other is as if everything is." Albert Einstein 

| http://github.com/finn-no | http://tech.finn.no |

Reply via email to