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: Overriding attributes at runtime
Date Mon, 14 Mar 2011 18:51:54 GMT
2011/3/13  <tigana.fluens@gmail.com>:
> I am using Spring MVC and I have to so something really simple but I cant
> figure out what to do. I have a "title" attribute that i use in my layout
> page, how do I set the value of the "title" attribute dynamically? I would
> want to use a variable returned from the controller as my title lets say my
> model is a Person and I would like to use that person's name as my title.

Since this is a very simple use case, I recommend using EL:
http://tiles.apache.org/framework/tutorial/advanced/el-support.html

Antonio

Mime
View raw message