Erik Husby wrote:
> What is the preferred Jelly coding technique for the following
>
> if (property not set by user) then
> set the property to a default value
> end if
>
> I've seen things like:
>
> <j:set var="valueX" value="${value}X"/>
> <j:if test="${valueX} == 'X'}>
> <j:set var="value" value="default value"/>
> </j:if>
>
> But that seems very awkward. The Jelly site does not seem to have any
> progamming tips only a tag reference.
>
Your example would work without the extra variable. Unfortunately Jelly has
a bug, when you have variables with a dot, since they misbehave in the
test ... <sigh>
Regards,
J�rg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]