How about a custom tag, which combines <bean:message> and <template:get>
functionality?

For example....

   <h1>Title is <myTaglib:message template="page" suffix=".title"/></h1>

I've attached a tag like this.


Niall



> -----Original Message-----
> From: Dean Wampler [mailto:[EMAIL PROTECTED]]
> Sent: 15 June 2001 17:28
> To: 'Niall Pemberton'; [EMAIL PROTECTED]
> Cc: Dean Wampler (E-mail)
> Subject: RE: Proposal: Support nested tags where only attributes can be
> used
>
> I wanted to avoid writing stuff like
>
>   <template:insert template="t.jsp">
>     <template:put name="pageTitle" direct="true">
>        <bean:message key="login.title"/>
>     </template:put>
>     <template:put name="pageThis" direct="true">
>        <bean:message key="login.this"/>
>     </template:put>
>     <template:put name="pageThat" direct="true">
>        <bean:message key="login.that"/>
>     </template:put>
>     <template:put name="pageTheOther" direct="true">
>        <bean:message key="login.theOther"/>
>     </template:put>
>     ...
>   </template:insert>
>
> for every single page when I could just define one thing for each page:
>
>   <template:insert template="t.jsp">
>     <template:put name="page" content="login" direct="true"/>
>   </template:insert>
>
> and have the template page "t.jsp" construct all the other items
> dynamically.
>

amarda.tld

MessageTag.java

Reply via email to