I have a simple script that checks if an attribute is in a set and if so prints the 
name.  I am having trouble with the output format.  when the condition is false I 
don't want any output, even a blank line.  Here is the script, sample data and output. 
 thanks  

<j:forEach items="${object.allAttributes}" var="attribute" trim="false">
    start
    <j:if test="${attribute.set}" trim="true">
attribute.name
    </j:if>
   end
  </j:forEach>


given allAttributes returns:
 ((set:true,name:one)
(set:false,name:two)
(set:false,name:three)
(set:true,name:four)
(set:false,name:five)
(set:true,name:six))

the output is :
start
one


four

six

end


What I expected and need is :
Start
one
four
six
end

anybody have a suggestion on what I need to do.




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

Reply via email to