Java
  Home arrow Java arrow Page 4 - Web Development in J2EE Using the MVC Desi...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

Web Development in J2EE Using the MVC Design Pattern
By: Dwight Peltzer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 22
    2005-01-17

    Table of Contents:
  • Web Development in J2EE Using the MVC Design Pattern
  • Examining Servlets and Java Server Pages
  • Java Server Pages (JSPs) Resolve Servlet Issues
  • Applying the Model/View/Controller Design Pattern
  • Applying the Mediator Design Pattern

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Web Development in J2EE Using the MVC Design Pattern - Applying the Model/View/Controller Design Pattern


    (Page 4 of 5 )

    IBM’s WebSphere Application Server has adopted the “Model, View, Controller (MVC)” design pattern created by Xerox PARC for Smalltalk-80 in the 1980s. This model is becoming increasingly popular with the programming community. Significantly, MVC was selected by Sun Microsystems as the recommended model for its J2EE specifications. MVC can be used by any programming language or platform and enforces the separation between (1) the view, (2) the model, and (3) the controller. It separates data input and processing from data output.

    The view interface presents us with a wide range of options such as making a selection from a series of radio buttons or a drop down list. For example, the user can select the type of delivery service, i.e. UPS, FedEx, USPS, or DHL from the list. Traditionally, the view is presented in HTML format. However, an interface may be also presented as XHTML or XML/ XSLT templates. Because the view is display-neutral, it can present many diverse views of the same data. A view always reflects any event changes occurring in the “model” layer.

    The model contains business objects which interact directly with JavaBeans or Enterprise JavaBeans (EJBs). They implement transactional business rules such as data persistence or retrieval.

    The Controller serves as interpreter by intercepting client requests and calling a servlet’s service() function to fulfill the client’s request. The controller applies no formatting nor does it output anything. It serves only as a notification service both to the view and model to respond accordingly.

    More Java Articles
    More By Dwight Peltzer


     

    JAVA ARTICLES

    - Deploying Multiple Java Applets as One
    - Deploying Java Applets
    - Understanding Deployment Frameworks
    - Database Programming in Java Using JDBC
    - Extension Interfaces and SAX
    - Entities, Handlers and SAX
    - Advanced SAX
    - Conversions and Java Print Streams
    - Formatters and Java Print Streams
    - Java Print Streams
    - Wildcards, Arrays, and Generics in Java
    - Wildcards and Generic Methods in Java
    - Finishing the Project: Java Web Development ...
    - Generics and Limitations in Java
    - Getting Started with Java Web Development in...






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT