Maybe it's just me but I don't see JSP as intrinsically OO.  Even if one
tries to cram them, incorrectly in my mind, into the category of a 4GL
technology.  JSP as it relates to HTML, and even to a large extent XML, is
about document oriented processing.  I just don't see why you would want
methods in this context--my assumption is that something else, like an EJB
or a Struts Action or a Servlet, would have done any heavy lifting business
logic that would necessitate OO and all the goodness that is a modern,
reasonably complete programming language like Java.

The kind of things I would really want to accomplish in JSP, then, would be
largely formatting and presentation.  In my opinion, JSTL does an excellent
job of fitting this need.  And if one looks at custom tags and EL functions
as extensions of this, rather than a means to embed complicated business
logic where it arguably doesn't belong, they also serve quite nicely.

You want OO so badly in a document-centric context, then roll your own
annotation and container, nothing is stopping you.  Yes, the design of EL
functions was an arbitrary decision by the spec guys, but I think they make
the point well that it logically follows from the design goals for 2.0 as a
whole and from the previous design goals as expressed in the evoluation of
the JSP standard from 0.9 onward.  But just because JSP is the Sun standard,
don't let that stop you from exploring and using alternatives if it doesn't
meet your needs.  Personally, I would rather see JSP be a coherent and
consistent standard, even if some find it limited in it's lack of true OO
concepts (see above for why I disagree with this), and have competing
standards, either Sun endorsed or as parts of projects like Jakarta (see
Cocoon's XSP and I think someone else mentioned Velocity), that better
fulfill other needs than have JSP be some frankenstein-ian beast that tries
to serve all users and be all things.

Just my $0.02.

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com



> -----Original Message-----
> From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 9:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Beefing up JSTL EL in JSP 2
> 
> 
> With methods... one could say object.do() (and do OO) as oposed to 
> do(Object). The guide line for OO is noun.verb().
> I wish it was methods.

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

Reply via email to