Daniel HERLEMONT wrote:
> I fully agree with this article :
> http://www.javaworld.com/javaworld/jw-09-1999/jw-09-servlet.html?IDG.net Do
> you know if such event/delegation model already exists in a product or
> is subject to some "standardization effort".I feel that there exist a
> big gap in the current J2EE models between Servlets and EJB, such
> models could fill the gap. I don't know if this subject has already
> been discussed, or if it is the right place ?
This subject has been discussed *many* times on both the
SERVLET-INTEREST and JSP-INTEREST lists -- look for topics like
"JSP architecture", "web application architecture", and "Model 2" in the
mailing list archives. A variant of this approach is also discussed in
JavaSoft's "Best Practices" manual for J2EE application design
<http://java.sun.com/j2ee> except that they use a JSP page as the
request dispatching logic (a mistake, IMHO), instead of a servlet.
One suggestion if you implement the code as presented in the article:
modify the init() method to accept initialization parameters defining
the URI used to select a particular request handler, and the name of the
class that implements the processing for that URI. As written, the
article's code requires you to add several lines to the dispatching
servlet (and recompile it) every time you add a new function. During
active development, you will find this is a real pain -- adding a single
initialization parameter is much nicer.
Craig McClanahan
___________________________________________________________________________
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