You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jürgen Leonhardt <jl...@idlp.de> on 2001/11/19 13:38:31 UTC

dynamic template:insert

Hi there,

i would like to do something like:
<template:insert template='<%=application.getAttribute("tpldir")%>'>

but I don't know if this syntax is legal or recommended. Is there a better
idea?

thanks for any answers

Jürgen Leonhardt

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: dynamic template:insert

Posted by Cedric Dumoulin <ce...@lifl.fr>.

Jürgen Leonhardt wrote:

> Hi there,
>
> i would like to do something like:
> <template:insert template='<%=application.getAttribute("tpldir")%>'>
>
> but I don't know if this syntax is legal or recommended.

  It seems to be legal.

> Is there a better
> idea?

  It depends of what you want to do. If you want to do simple things, its a good
approach. If you want to do more complex things, don't forget to check Tiles
framework (extended templates). Tiles are in Struts1.1dev contrib folder.

    Cedric



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>