Aaron,
While you certainly could use JSPs to develop your workflow layer, this is
traditionally done with servlets. While it's probably somewhat easier to
develop a JSP solution, the strengths of the servlet approach are that
you're developing closer to the true object model (not <really> the case
with JSP), the ability to have real instance variables across multiple
invocations, and basically cleaner and possibly faster code, since JSP first
gets compiled into servlet classes with a lot of additional generated code.
JSPs weren't really meant to do this kind of work, and except for the
simplest situations, I've always come down on the servlet side. I'd be
interested to hear what others on this group have to say about this.
-Jeff
-----Original Message-----
From: Aaron O'Hara [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: Developing an N-tier system
All,
I'm designing an N-tier application and would like some feedback, comments,
notes from the field. I have tried to layer my design as follows:
JSP/HTML - presentation layer
Non-Gui JSP - workflow layer
Scope Beans (page, request, session, application) - business logic
Psuedo Entity Beans - persistence layer
DB API - database services
In the presentation layer, I either present information to the user or
receive form information. All the form submissions go to the workflow layer
which calls the necessary business logic beans to determine what should
happen next. The business logic beans retreive or save data using the
psuedo entity beans. (I say psuedo because this in not a EJB entity bean,
but an object that maps to a corresponding table in a database). All the
entity beans perform their database operations via a singleton class, the DB
API.
I'm looking for a critique or comments from people about the design I've
adopted and implemented.
Aaron
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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