Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tiles:insert VS tiles:get

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On this web site, they use

But on a PDF tutorial found here they use the following syntax:

They both seem to work the same. Is there any difference? Is this a version difference? Which way is preferred?
Thanks.
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
insert goes directly to the tiles definitions.
get retrieves something from the request scope, i.e. after being 'put' there with a put tag.
See the tiles taglib docs here:
http://www.lifl.fr/~dumoulin/tiles/doc/tilesTags.html
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic