Hi
I asked nearly the same question a month ago:
------ my original question -----
I need to present data from several major areas of functionality on one
web-page, so do I write a servlet for each area or do I write a
master-servlet that uses business objects to provide
the data?
If I write a servlet for each area of functionality, I face the problem that
they are all on the same logical level and should therefore know nothing
about the others. Result: I need a master-servlet that is logically placed
above the others.
If I need a master-servlet, then why should each area of functionality be
implemented as servlets. In my opinion they should be business objects.
I think I've read the following, or at least words to that effect, some
weeks ago on this mailing list: Servlets are for user interfaces. Use
servlets for implementing the user dialoque. Use 'plain' java classes to
implement your business logic.
------ end -----
And the answers I got agreed with me that it was a good idea to have one
servlet managing UI and let business logic and database access reside in
plain java classes.
Regards
Michael B. Pedersen
-----Oprindelig meddelelse-----
Fra: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]P� vegne af RAD
InfoTech
Sendt: Wednesday, September 27, 2000 7:32 AM
Til: [EMAIL PROTECTED]
Emne: Better Servlet Design
I have a general design question.
Requirement: Need to have a servlet that takes care
of listing, adding, updating and deleting employees.
Which is a better design?
(a) One Servlet that handles these various functions
(b) One Servlet for each function (ie., AddServlet,
UpdServlet, etc.,)
Thanks in advance.
- Balaji
RAD InfoTech India Private Limited
___________________________________________________________________________
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
___________________________________________________________________________
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