[Zope] Java re-invents DTML :-)

Lennart Regebro lennart@regebro.nu
Thu, 13 Feb 2003 19:25:52 +0100


Evan Simpson wrote:
> 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


Maybe you should write the inventor of this very complicated way of 
doing scripting and say "Hey, we tried that. It's a bad idea." :)

He should use TAL instead, of course. No kidding this time. :) It's much 
more suited for what he wants to do.