2009/11/23 Brian Stewart <[email protected]>:
> What is the best way to include an external tile in a template definition?

There is no way, currently, to include an external resource at all.

> <definition name="layout.content " 
> template="/WEB-INF/webtiles/search/searchLayout.jsp">
>      <put-attribute name="customer" type="redirect" 
> value="/EXTERNAL/tiles/DisplayCustomerTile.jsp" />
> </definition>

However you got the right path: probably the best way is to create a
renderer that manages external resources. For info about renderers
see:
http://tiles.apache.org/2.1/framework/tutorial/advanced/attribute-rendering.html
or
http://tiles.apache.org/framework/tutorial/advanced/attribute-rendering.html
(for Tiles 2.2.x)
You might be interested in the HTTPClient project, to connect to the resource:
http://hc.apache.org/httpcomponents-client/index.html

Ciao
Antonio

Reply via email to