h wulfson wrote:

> Unfortunately Craig's statement (which I found
> immensly useful) is a little misleading. Scriptlets
> are bad in Model 1 also, and there is nothing in Model
> 1 that encourages their use. That is to say that
> seperation of content and business logic is not a
> model 1 vs. model 2 issue. It is simply a matter of
> good design.

I cannot disagree more.

I read Craig's message and thought many of his points were valid, Model 2
provides a better control flow than Model 1, particularly if you have to have
the
same basic HTML structure for your pages, but support multiple languages. There

are reasons to recommend both models depending on what you want to do, and
having that flexibility is very useful.

But saying that scriplets == business logic is something that I cannot accept,
scriptlets are there to give you access to your business logic which is either
encapsulated in beans [which I don't like] or put in a application server layer
(ejb/corba). Just like
a normal gui application requires logic to deal with its user interface, and
interact
with business logic, so does JSP.

Scriptlets were not, are not, and will never be "bad".
--
Richard Vowles, Senior Systems Engineer,
Inprise New Zealand, MAIL: [EMAIL PROTECTED], [EMAIL PROTECTED]
HTTP: The Esperanto Group, www.esperanto.org.nz
[my messages contain my own opinions, not those of my employer]

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