Hi
I'm in the exact same situation. 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.

Anyone disagree?

Best 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 Rajesh
V
Sendt: Wednesday, August 30, 2000 7:44 PM
Til: [EMAIL PROTECTED]
Emne: design problem


Hi all,
        We are trying to develop a software almost similar to a chat using
servlets. We want to have a controller servlet that takes in requests of
all kinds from the clients and use objects on the server to do the work
begind the scenes. The response is sent back thru the controller servlet.
Is this architecture okay? Is it okay to have normal objects running on
the server or is it better to have them as servlets and do a servlet
chaining kind of thing..
Is this design okay in the first place or is it better to have a
distributed kind of architecture with diff servlets for diff kinds of
jobs.
This is the first time that i am doing such a project...kindly help
Thanks
Rajesh

___________________________________________________________________________
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

Reply via email to