[Zope] Java re-invents DTML :-)

Evan Simpson evan@4-am.com
Thu, 13 Feb 2003 12:08:07 -0600


See http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html

Admittedly, they were a bit cleverer about namespace, expression vs. 
name, and tag-nesting issues, but otherwise it's all very familiar. 
Compare:

<c:choose><c:when test="${user.role == 'member'}">
     <p>Welcome, member!</p>
</c:when><c:otherwise>
     <p>Welcome, guest!</p>
</c:otherwise></c:choose>

<dtml-if "user.role == 'member'">
     <p>Welcome, member!</p>
<dtml-else>
     <p>Welcome, guest!</p>
</dtml-if>

Cheers,

Evan @ 4-am