Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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: 15299

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.
subject: tiles:insert VS tiles:get
Similar Threads
Tiles Insert Problem
Reusable but not visible to client components with Struts and Tiles?
Trying to use Tiles--Little success :-(
tiles again
Problem in rendering html tags in myfaces tiles