Servlet -> JSP or HTML ->Bean -> Servlet -> JSP
|
|
Bean->EJB EJB
Here a servlet instantiates a bean, fills it with data (or bean fills
itself with data),is passed to the EJB 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.
Second the Servlet takes the data from the bean passes to the EJB and then
data is sent back to the bean then data is taken up from instance of the
bean in the servlet and sent to the JSP
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!
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".