Hi,
As I said before: you just cannot do that. If you're used to PHP, think
of each webapp as a different server on a different machine.
With JSP you must have all your templates in the same webapp; there's no
way out.
With Freemarker, you may place your templates on the hard drive outside
the webapp. Proceed as described here
http://tiles.apache.org/framework/tutorial/integration/freemarker.html
and use a URL like "file:///var/www/..." as the "TemplatePath" parameter.
Hope this helps
Nick
On 11-10-26 04:39 PM, kape wrote:
I'm a front-end developer and am not too comfortable with Java. I would like
to be able to use a JSP or Freemarker template, that resides in a different
application, in the tiles.xml definition.
We have several web applications that have common components, such as
headers and footers, and I would like to put the header and footer templates
in one application and reuse them in all other applications.
First, I can't figure out how to refer to an external template.
Second, how can I render variable and/or parameters in the external
template? For example, if I want to render a Log In vs. Log Out link in the
common header based on whether the user is logged in or not, how can I do
that?
Can someone please help me by providing an example?
--
View this message in context:
http://struts.1045723.n5.nabble.com/Reusing-template-s-external-to-application-with-Tiles-tp4941107p4941107.html
Sent from the tiles users mailing list archive at Nabble.com.