You make a good point, that scriptlets can be thought
of as a method of accessing bean properties and doing
loops and conditionals.  But since .92 provides that
functionality in simple HTML-style tags, I'd rather
avoid avoid java code in JSP pages for the simple
reason that it would tempt my developers into doing
unorthodox things (unwittingly introducing business
logic into the page). The HTML-style tags are a way of
ensuring the logic/presentation seperation orthodoxy.

-Harris

--- Richard Vowles <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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