File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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 team, Newsletter 039.
wood burning stoves
subject: tiles:insert VS tiles:get
It's not a secret anymore!