Java
  Home arrow Java arrow Page 2 - 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 - Examining Servlets and Java Server Pages


    (Page 2 of 5 )

    The process described above occurs in a Java J2EE environment by using Java Servlets for processing client requests and delegating the requested task(s) to a Java Bean or an Enterprise JavaBean (EJB) for data persistence or retrieval. Subsequently, the Servlet utilizes a Java Server Page (JSP) to return the response or results to the client. J2EE specifications provide support for Web development and offer numerous alternatives for creating Web applications. Java Servlets have become increasingly popular in recent years and interact seamlessly with JSPs.  Servlets offer the advantage of being written in Java, implementing presentation logic and managing Web browser client requests.

    Additionally, they create a single heavyweight process and facilitate user requests by using a lightweight thread maintained by the Java Virtual Machine. A servlet is designed to map to one or more URLs. When the server receives a specified servlet’s URL request, the service() method is invoked and subsequently responds. Each request is associated with an individual client call. This allows multiple users to invoke the service method simultaneously, a major benefit for users.

    Unfortunately, servlets also have a negative side. HTML is hard coded, making modifications to a servlet difficult because for every change, a servlet recompile is necessary. Also, determining a user’s locale, language, and other variants is difficult to accomplish in HTML. In fact, internationalization issues are frequently bypassed in Web development because a unique servlet is required for each individual locale. This is altogether too cumbersome.  There must be another answer.

    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