Craig/and All,
I've been following the Model 2 thread. I've the following model working.
I've customized the Model 2 to meet our business requirements.
(constraints??). Could you all please review and comment ? Here is the
overview.:
* The HTTP request arrives and is dispatched to the Controller
(Router) servlet. This is done based on configuration rules provided when
the application is installed.
* The controller servlet delegates the request to appropriate servlet.
(Why can't we use a 'servlet' instead of 'action' class ? What are the
disadvantages?? ) The application servlets acts as command beans and
implements the customization required for the application. The controller's
sole responsibility is to delegate the requests.
* The application servlet makes calls on one or more service beans to
perform the logic of the request. All application servets requiring
security extends a SecureServlet which implements page and event level
security.
* The service and beans implement the business logic and may leverage
relational database access, connectors, or the Web application
infrastructure to perform its computations.
* Based on the results of the computation the servlet either selects
and invokes a JSP or does an HTTP redirection to another structured
interaction. In the former case, the servlet will need to post some of the
results (Datastore, DataSheet - glorified hashtables.) of the computation to
the execution (HtttpRequest & HttpResponse) context for use by the JSP
before calling it. In the latter case, the servlet will usually need to
place some of the results of the computation into the session context so
that it can be picked up by the next interaction.
* The dynamic content on the selected page is filled in from the
request and session context and the page is sent to the client. This may
leverage:
formatting beans, other JSP pages, and static content components.
Thanks,
Kamalesh.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets