× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> From: "Hans Boldt" <boldt@xxxxxxxxxx>
> Applications written using a framework like J2EE (among others)
> naturally fit into an MVC framework, since different tools are used
> for each component.

I wouldn't agree that J2EE applications naturally fit into an MVC design
pattern.  Consider the following Servlet example from Sun's tutorial:

import java.io.*;
import javax.servlet.*;
public class SampleServlet implements Servlet {
  private ServletConfig config;

  public void init (ServletConfig config)
    throws ServletException {
    this.config = config;
  }

  public void destroy() {} // do nothing

  public ServletConfig getServletConfig() {
    return config;
  }

  public String getServletInfo() {
    return "A Simple Servlet";
  }

  public void service (ServletRequest req,
    ServletResponse res
  ) throws ServletException, IOException  {
    res.setContentType( "text/html" );
    PrintWriter out = res.getWriter();
    out.println( "<html>" );
    out.println( "<head>" );
    out.println( "<title>A Sample Servlet</title>" );
    out.println( "</head>" );
    out.println( "<body>" );
    out.println( "<h1>A Sample Servlet</h1>" );
    out.println( "</body>" );
    out.println( "</html>" );
    out.close();
  }
}

In a more complex example, database I/O logic might have also been embedded
in the service method along with the UI logic.

Similarly, one might find UI control and DB I/O logic embedded in a JSP
page.

My point is that J2EE, like ILE CGI, leaves it up to the programmer to
implement MVC design.  CGIDEV2 and other ILE frameworks support MVC design
just as much as J2EE does, through HTML templates, and the ability to place
DB I/O logic in ILE modules separate from control logic.

At least we both agree that MVC design is very important ;-)

Nathan M. Andelin
www.relational-data.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.