David Wall wrote:
> it's definitely riskly to speak highly of
> Microsoft in a Linux community as it is to suggest the JSPs are
> not the end-all in a JSP community <smile>
Yes, members of the WebMacro mailing list have been far more
supportive. Go figure.
> Why did they have to come up with some verbose and confusing syntax
> (XML?) for certain common things like loops and displaying the
> contents of a variable?
I wonder the justification here myself.
> And if you passed the ISP back as an array, it would be more like:
>
> <% for ( int i=0; i<isps.length; ++i ) { %>
> The next name is <%=isps[i].getName()%><br>
> <% } %>
>
> I'll grant none of this meets the simplicity of the webmacro solution,
> though as a Java programmer I have no problem with it <smile>.
In my opinoin, a graphics artist shouldn't be expected to write this.
> As for webmacro, how do you get the Javabean objects to be
> referenced by the webmacro infrastructure, since part of the
> "nice-ness" of JSP is that it's integrated with Java and all of
> the objects and beans that we've written over the years are also
> available?
In the servlet you say:
context.put("isps", isps);
This makes a $isps variable available in the WebMacro template's
context. It's similar to how RequestDispatcher works by passing in
attributes in the request. Add as many variables as you want.
List-ish objects (arrays, Enums, Vectors, etc) can be automatically
iterated over. Beans can have their props automatically read.
> I totally agree on the error messages. I've haven't seen the
> nasty ones you showed, but I've had to resort to looking at the
> JSP source generate to debug some errors.
I have a long list of hilarious error messages that you'll never be
able to figure out without the source.
> The argument about wasted space seems rather old fashioned in the
> days of cheap 13GB drives.
Most ISPs don't give you 13 Gigs to play with. They give you 30 Megs.
> Memory has been a concern of mine for some time, since
> it's a bit much for some rather static pages to be compiled into
> a class file that's loaded into memory. I hope my servlet engine
> knows to unload them when not needed, but I doubt it.
Most don't.
> Very good comments and I'd love to see the JSP community respond --
Thanks. Raising awareness is my goal.
-jh-
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html