on 2002/10/7 6:56 PM, "Martin Cooper" <[EMAIL PROTECTED]> wrote:

> You mean this, taken from the page, don't you?
> 
> <html>
> <head><title>Hello</title></head>
> <body>
> <h1>
> #if ($request.getParameter("name") == null)
>  Hello World
> #else
>  Hello, $request.getParameter("name")
> #end
> </h1>
> </body></html>
> 
> At least if you're using JSP/JSTL, you don't have to explain method calls to
> your "non-programmer designers".

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>

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}">

What does "c" stand for? Oh wait...explain that to your designers. 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.

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

-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]>

Reply via email to