struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Incze Lajos <in...@mail.matav.hu>
Subject Re: Passing a bean property to template:put tag
Date Thu, 01 Mar 2001 18:14:37 GMT
On Thu, Mar 01, 2001 at 10:37:29AM -0500, Mike Bell wrote:
> Hello,
> Is there a way to pass a bean property to a template:put content?
> I've tried using a <bean:write...> in the content parameter but it just
> passes it straight through (with or without direct set).
> I've also tried:
> 
> <bean:define id="xyz" name="theForm" property="theProperty"/>
> <template:insert template='/corePageHeader.jsp'>
>   <template:put name="title" content='xyz' />
> </template:insert>
>
The current template implementation let's you non-empty template:put
(like exput and it should work:

<bean:define id="xyz" name="theForm" property="theProperty"/>
<template:insert template='/corePageHeader.jsp'>
  <template:put name="title">
    <bean:write name="xyz" />
  </template:put>
</template:insert>
                                                     incze

Mime
View raw message