Gabriel Wong wrote:
> >
> > There are at least a couple of strong motivations to separate the business
> > logic from the presentation logic:
> >
> > * The skillsets needed to do the business logic (in Java) and
> > the presentation (in HTML) do not always reside in the same
> > person -- keeping things separated lets you work in parallel.
>
> I agree with everything except the above. From my experience in todays environment
> the Java developer does both the logic and presentation probably with the
> assistance of a designer because of the complexities involved unless that designer
> is a developer turned designer or that designer is trained in the use of JSP.
>
It is clear that the HTML page designer needs to be trained in how to use JSP, but at
the level of tags like USEBEAN and DISPLAY, not at the level of Java code embedded in
scriptlets. This is the same type of knowledge the page designer needs for any
scripting or page templating technology -- not just JSP.
It's one thing to explain how the INCLUDEIF and LOOP tags in JSP work (and believe me,
you will have to!). It's quite another thing to expose them to the gory details of
database access via JDBC calls embedded in <% and %> tags. IMHO, that is the kind of
stuff that should be hidden behind beans (or embedded in servlets that then stash the
results in beans).
With the immature tools currently available, it's not surprising that Java developers
have to know HTML -- especially when you had to generate it directly in your
servlets. This development paradigm works for small-to-medium scale projects, but it
is not going to scale well to large projects.
The tools are coming along, but they're definitely not there yet. The design
philosophy (of splitting business logic and presentation) is the important principle
to understand now. It has benefits even in the cases where the same person does do
both jobs, because it gives you more flexibility to change one without dramatically
impacting the other.
Craig McClanahan
===========================================================================
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".