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.

--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to