You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bruce McCleave <BM...@CQOS.COM> on 2000/11/22 18:53:42 UTC

template?

Hi all,

I have just begun to use struts, and am so far very impressed.  The question
I have has to do with templates and localization.  Can I pass a element to
the "template:put" tag that is defined in a property file?  (ex. I want the
text from 'title.report' that would be outputted from a "struts:message" tag
to be put in the title section of a template).  If this is not available I
can add the code.

<template:put name='title'   content='Reporter' direct='true'/>

~Bruce

RE: template?

Posted by Andrew Boyko <ab...@fabgear.com>.
> I have just begun to use struts, and am so far very impressed.
> The question
> I have has to do with templates and localization.  Can I pass a element to
> the "template:put" tag that is defined in a property file?

While we're discussing enhancing the <template:put> tag,
I'd like to strongly endorse Oleg Alexeev's <template:extput>
tag, which adds the ability for a <:put> tag to insert text
directly from its own body, rather than from an external
file or from an attribute of the tag.  It seems completely
compatible with the existing put tag, so I humbly request
that the <:extput> tag simply become the new <:put> tag.

Andy Boyko   aboyko@fabgear.com