> -----Original Message-----
> From: Jon Scott Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 07, 2002 7:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Differences between Structs and Turbine ???
> 

<snip/>

> The above could just as easily be written as:
> 
> <html>
> <head><title>Hello</title></head>
> <body>
> <h1>
> #if (!$name)
>    Hello World
> #else
>    Hello, $name
> #end
> </h1>
> </body></html>

Ah, well that looks a bit better than what is promoted as "the Velocity way"
at the link you provided. You might want to update that page, along with an
update to the JSP/JSTL way of doing things, if you're serious about
providing a comparison.

> 
> No method calls. Let's see how easy you can make the JSTL equivalent.
> 
> > I see no syntax changes, only new tags and attributes.
> 
> Actually, the syntax changed quite a lot...a simple "if" 
> statement went from
> a single element (which made no sense) to a multiple element 
> syntax (clearly
> to support what XSLT does....which IMHO only complicates 
> things even further
> because XSLT is even further above what most designers understand...):
> 
> from:
> 
> <logic:notPresent parameter="name">
> 
> to:
> 
> <c:choose>
>   <c:when test="${empty param.name}">

The language syntax did not change at all. What did change was the way in
which the page developer elected to perform a given task. He/she had the
choice of which syntax to use. Of course, you're going to tell me that that
is something that never happens with Velocity...

> 
> What does "c" stand for? Oh wait...explain that to your 
> designers.

Gee, Jon, I was led to believe you are a smart guy... You can specify
whatever prefix you want, so if you want to use tags like:

  <jonHatesJsp:out value="Jon is God"/>

you are perfectly free to do so.

> Also, I
> believe you forgot a bunch of other junk that you have to put 
> at the top of
> the file or in configuration files to configure what "c" means anyway.

A bunch of junk? One line:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>

Oh, and it's real hard to change 'c' to 'core' or whatever you want it to
be...

> 
> It is quite funny to me to see you try to justify something that is
> obviously more difficult to understand and write.

I'm not trying to justify anything. I'm happy using what I'm using, and
thousands of other people are too. If you're happy using what you're using,
that's cool too.

I find it even more amusing to see you try to defend

> 
> -jon
> 
> -- 
> StudioZ.tv /\ Bar/Nightclub/Entertainment
> 314 11th Street @ Folsom /\ San Francisco
>         http://studioz.tv/
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



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

Reply via email to