> Sorry to read about your pain, but I actually prefer the new
> code!

You know what? As a Java programmer, *I* prefer the scripted code too. No
proprietary junk, more control (I mean, what if I wanted to loop backwards?
I'd be hosed if I were using LOOP) -- it's just plain better. Unfortunately
(well, fortunately, actually ;) I'm not the person writing this stuff -- I'm
writing beans & servlets & my customers (they're not really *my* customers,
btw) are writing UIs that use them. And they are not (by & large, and I hope
none of them are reading this) programmers.

> And if you align the
> code like you
> have in your first example, it doesn't look that terrible:

I agree, that's a much better way to align the code, though it still
obfuscates the braces, which I don't care for. The JSP example code (as you
know, I'm sure) does this:

<TABLE>
<%
    RowBean[] rows = results.getRows();
    for (int i = 0; i < rows.length; i++) {
%>
        <TR>

etc.

but I think that's probably worse.

> There are formatting beans out there if you want to move the code
> generation
> into a formatting bean.  I believe IBM has a number of them.  Or you could
> easily write a bean to produce your output.

That's probably the right solution, given the current state of JSP. I'm not
blown away by IBM's JSP beans, but I'll take a closer look -- they might do
the trick. Bottom line, though is this: JSP 1.0 makes it significantly more
difficult for the people who are using my software to create their UIs.

chris

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to