Does an include. This tag is rather similar to mm:url, but in stead of returning the url, it returns the page itself. In that respect it is also very similar to jsp:include. The advantage above jsp:include is that this tag is aware of the context parameters and knows the `param' sub tag.
mm:include also can be used to include `external' URLs, so you can `steal' from another server. But be aware that this causes your server to do an http-request itself to another server. It depends on your server's configuration and of its network's setup, if it is allowed to do this.
If this version of MMBase is running on the Orion application server even `internal' URLs, so pointing to files on the same server, will work like this. In other words, Orion will do an http-request to itself. This was the way the include-tag worked always in MMBase 1.5.
You can also consider using the jsp <%@include file="" %>. This will include the code of that page in place and compile it together with your page. So in that aspect it is much different from this tag, which "includes" a stand-alone page. Using the `context' tag you can still give this included file its own scope.
Also 'tagfiles' provide a nice way to make pieces of taglib code generic.
|see also||param | url | haspage | treeinclude | leafinclude|
<mm:include page="codesamples/index.jsp.1" />
<os:cache> <mm:include page="http://site.which.sometimes.does.not.work.com" timeout="200" /> <c:if test="true"> <os:usecached /> </c:if> </os:cache>