First of all, I must say I 'm very new to this technology, but I was
wondering
and investigation about the so-mentioned separation that must exists
between presentation and bussiness logic and how the model 2 MVC
paradigm can help.

For what I understand the one of the advantages is that designers can
better express theirself in jsp-html and programmers in servlets.
I think this can be very usefull in the design of a web site were you
have graphic designers separated from programmers, for example.

But I must target another environment: client server apps
(Visual Basic <-> SQL Server, for example), that must be
migrated to an intranet. And there we only have programmers.
Programmers that are used to programmatic languages, and
applications that are designed as visual components
(a rich database grid, a combo that automatically connects
to a table in a database to get its list of values, etc.)

So, what I was looking for was a way of encapsulating
presentation so a programmer can say something like:

DbGrid = new DbGrid ();
DbGrid.query = "SELECT ...";
DbGrid.show (); // or DbGrid.toString();

Yes, I want to separate the bussiness logic. For that, I
want session beans, entity beans or whatever, but
talking just about the presentation, is it so bad to have
only well-encapsulated html into classes instantiated
directly from servlets ?  I mean, for what I read, it seems
that somebody who doesn 't have a controller servlet
that redirects to some jsp view is out of the way.

Hope somebody can give me some guidance (of course,
I don 't pretend code examples, just ideas, pointers,
projects that may be out there, etc.)

TIA,

Martin


ps. excuse the length of the mail. I wanted but I couldn 't
say it any shorter.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to