jQuery in Action, 3rd edition
The moose likes Struts and the fly likes tiles:insert  VS tiles:get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles:insert  VS tiles:get" Watch "tiles:insert  VS tiles:get" New topic

tiles:insert VS tiles:get

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

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?

GenRocket - Experts at Building Test Data
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
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:

"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
I agree. Here's the link: http://aspose.com/file-tools
subject: tiles:insert VS tiles:get
jQuery in Action, 3rd edition