If used properly, JSP fits the MVC model just fine. 
Your always going to have some type of code in your
presentation level.  Whether it is VTL or Java
shouldn't matter.  VTL is still code...Try to teach a
creative designer how to write VTL.  You'll have no
more luck than trying to teach them Java basics.

What is the difference between:

<HTML>
<BODY>
Hello $customer.Name!
<table>
#foreach( $mud in $mudsOnSpecial )
    #if ( $customer.hasPurchased($mud) )
        <tr>
            <td>
                $flogger.getPromo( $mud )
            </td>
          </tr>
     #end
#end
</table>

and this:
    
<HTML>
<BODY>
Hello <%=customer.getName()%>!
<table>
<%
for(int i = 0; i < mudsOnSpecial.length; i++) {
    if (customer.hasPurchased(mudsOnSpecial[i])) {
%>
        <tr>
            <td>
               
<%=flogger.getPromo(mudsOnSpecial[i])%>
            </td>
          </tr>
<%
    }
}
%>
</table>

Personally I would rather use java.  VTL is clunky.




>>> Jon Stevens <[EMAIL PROTECTED]> 02/06/01 01:48 AM
>>>

on 2/5/01 9:48 PM, "Johnny Cass"
<[EMAIL PROTECTED]> wrote:

> I've read a lot of opinions like this one all over
the net (that JSP
> sucks). Though my intuition tells me that using
Velocity *must* somehow
> be better than using JSP, I haven't actually been
able to determine
> *why* this is the case.
> 
> I have only been using JSP for about two weeks (so I
may just be naive)
> but have so far enjoyed it's:
> 
> - Ease of use (but not debugging)

Right, it is so easy to just put a few lines of Java
code in your page,
isn't it? Right there you just broke the MVC
separation that everyone is so
into.

> - The thorough specification and documentation

Yes, that part is good. However, when you have a large
corporation backing
the development with millions of $, you would expect
such a thing.

> - Level of integration (with tools like NetBeans
IDE)

Yes, that part is good. However, when you have a large
corporation backing
the development with millions of $, you would expect
such a thing.

Again, I'm working on my essay...it should be ready in
a few days.

-jon

-- 
If you come from a Perl or PHP background, JSP is a
way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/> |
<http://java.apache.org/turbine/>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:     
[EMAIL PROTECTED]
Search:
<http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]




__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to