On Sat, 18 Jan 2003, flare wrote:
> Date: Sat, 18 Jan 2003 19:15:32 +0100
> From: flare <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: RowSetDataSource and BasicDynaBean
>
> > I am trying to get BasicDynaBean to work within <bean:write> tags but
> > it always throws error. : No getter method for property. Can someone
> > tell me what is wrong..
>
> Dynabeans are not really beans
True.
> so you cannot use them with the struts
> bean tag (I've not tried the latest version though),
False. Tags like <bean:write> *do* understand dynabeans, as does any Java
code that uses BeanUtils and PropertyUtils directly.
you cannot use them
> with the jstl apache implementation either
Also false in at least one special case.
DynaActionForm (and its subclasses) have a public getMap() method which
returns a map of the property names and values. Therefore, the following
statements are roughly equivalent when "customer" is a DynaActionForm:
<bean:write name="customer" property="name"/>
<c:out value="${customer.map.name}"/>
> BUT they work with the Resin
> JSTL implementation (included in the container)
>
Don'tcha just love how people can lock you in to their own container with
innocent extensions like this?
> regards
>
> > Thanks.
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>