> <bean:define>
> <id>door</id>
> <name>mouse</name>
> </bean:define>
>
> Then 'door' and 'mouse' could be substituted by any valid XML
> expression.
>
> Is this idea reasonable? I've little experience of writing tags.
>
> Cheers,
> Alex
I used this type of parameter declaration for some tags :
<my:parentTag>
<my:argumentTag arg="id">door<my:argumentTag>
<my:argumentTag arg="name">mouse<my:argumentTag>
</my:parentTag>
argumentTag use reflection to set a property of its parent tag.
It can only be used on parent tags where the doStartTag does nothing but
returns EVAL_BODY_TAG, because its attributes have not been setted yet.
It doesn't works too if your tag needs to iterate (or parentTag has to
assume its attributes will be setted on each iteration)
So for example, you cannot use it for an bean:iterate tag, where collection,
length, offset and so on are used in doStartTag method and body of the tag
(and so included subtags) can be skipped.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>