I am using WebSphere and am wondering about these two options of creating
dynamic pages (I realize there are many more options, really :-)

A. JSP->Bean->DB
In this one, a JSP page instantiates a bean.  The bean talks to the DB (or
some middleware) to set its state.  Then the JSP page displays it.

B. Servlet -> JSP
      |
    Bean->DB
Here a servlet instantiates a bean, fills it with data (or bean fills
itself with data), adds to the Request object and calls a JSP page to
display it.  So here JSP does not instantiate beans, it only displays them.
 Seems like this one is closer to the Model-View-Controller paradigm.

What are the pros and cons of these?  When would you use which? Have you
standardized on one for their sites/applications?  Is it good to mix and
match?  Are there other architectures you found that worked for you well ?
Please share info.  Thanks in advance!

..........................................................
Dmitry Grenader            Bowne Internet Solutions
Solutions Delivery
                           phone: (617)218-2441
                           fax  : (617)218-2401
                           http://www.bowneinternet.com

[EMAIL PROTECTED]
..........................................................

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