ContentsApplication DesignCollaboration
Previous: Interfaces | Next: Leaks

Collaboration

Just as delegation has a functional side and an operational side, so does collaboration.

Collaboration involves timing, sequences of events, and the possibility of concurrence. As long as your servlet doesn't update any external resources, these issues are usually taken care of by the infrastructure. Because HTTP is stateless, your user doesn't have any risk of running into a transactional deadlock.

Although this topic is outside of the scope of this tutorial, here are a few of things to keep in mind:

There is another perspective on collaboration, too... organizational. Unless you are doubling as the web page designer, the HtmlPage class is an ugly and inefficient way to make web pages. Yeah, they work - which is OK for a prototype - but you really should think about using a WYSIWYG HTML editor and separating your servlet from the web page design. I'll talk more about this issue and give my recommendation in an upcoming section.


ContentsApplication DesignCollaboration
Previous: Interfaces | Next: Leaks