You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Adam Sherman <ad...@tritus.ca> on 2002/09/17 14:40:04 UTC
Tiles/Template Automation
If I want to avoid defining attributes in multiple locations, and modifying
more than one file for each new page, how should I use Tiles/Templates?
To clarify:
I want all files in a certain directory to use the same template.
I also want the attributes, like Title, to be contained in the files
themselves.
This means that I can add a page, simply by creating it in the right
location.
Any ideas?
Thanks,
A.
--
Adam Sherman
President & Chief Technologist
Tritus CG Inc.
+1 (613) 797-6819
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Tiles/Template Automation
Posted by Cedric Dumoulin <ce...@apache.org>.
Hi,
Sorry for this late answer, I am abroad since 2 weeks, and have some
trouble with my mails.
The preferred way is to use definitions defined in a centralized xml
file. This is more flexible than having some attributes hardcoded in the
jsp files themselves.
Cedric
Adam Sherman wrote:
> If I want to avoid defining attributes in multiple locations, and
> modifying more than one file for each new page, how should I use
> Tiles/Templates?
>
>
> To clarify:
>
> I want all files in a certain directory to use the same template.
> I also want the attributes, like Title, to be contained in the files
> themselves.
>
> This means that I can add a page, simply by creating it in the right
> location.
>
> Any ideas?
>
> Thanks,
>
> A.
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>