Preview

Spring Java J2Ee

Good Essays
Open Document
Open Document
6946 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Spring Java J2Ee
Chapter

2

Spring Quick Start Tutorial
Developing Your First Spring Web Application The following chapter is a sample from SourceBeat’s Spring Live book by Matt Raible. Please visit www.sourcebeat.com to access the book.

This chapter is a tutorial on how to write a simple Spring web application using the Struts MVC framework for the front end, Spring for the middle-tier glue, and Hibernate for the back end. In Chapter 4, this application will be refactored to use the Spring MVC framework. This chapter covers the following topics: • Writing tests to verify functionality. • Configuring Hibernate and Transactions. • Loading Spring’s applicationContext.xml file. • Setting up dependencies between business delegates and DAOs. • Wiring Spring into the Struts application.

Spring Live

Overview

14

Overview
You will create a simple application for user management that does basic CRUD (Create, Retrieve, Update and Delete). This application is called MyUsers, which will be the sample application throughout the book. It’s a 3tiered webapp, with an Action that calls a business delegate, which in turn calls a Data Access Object (DAO). The diagram below shows a brief overview of how the MyUsers application will work when you finish this tutorial. The numbers below indicate the order of flow – from the web (UserAction) to the middle tier, (UserManager), to the data layer (UserDAO) – and back again.

Figure 2.1:

MyUsers application flow

This application uses Struts as the MVC framework because most readers are familiar with Struts. The real power of Spring lies in its declarative transactions, dependency binding and persistence support (for example Hibernate and iBATIS). Chapter 4 refactors this application to use Spring’s MVC framework.

Spring Live

Overview

15

Below are the ordered steps you will perform: 1. Download Struts and Spring. 2. Create project directories and an Ant build file. 3. Create a unit test for the persistence layer. 4.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    There are lots of design styles readily available for the creation of company software program. The design styles talked about in this report will include Data Access Object (DOA), dispatcher, plant technique, abstract factory method, as well as model-view-controller (MVC). All 5 of these design styles are evaluated as well as compared in this report.…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Based on the Greiner (2009) article, define an applet and distinguish one from a servlet.…

    • 693 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    framework description and a complete technical description of what is needed. You are required to…

    • 313 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Cmgt Week 4

    • 345 Words
    • 2 Pages

    Use any familiar web, Java™, .NET, or database development tool to design, develop, and create the application or site.…

    • 345 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    References: Zacker, C. (2009). Lesson 7: Deploying Web Applications. Windows server 2008 applications infrastructure configuration (70-643) (). Hoboken, NJ: Wiley.…

    • 411 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Interpersoanl Skills

    • 1598 Words
    • 7 Pages

    An SOA can be implemented by utilizing Web Protocols to achieve a loose coupling between two or more distinct services.…

    • 1598 Words
    • 7 Pages
    Powerful Essays
  • Better Essays

    Css422 - Design Patterns

    • 1044 Words
    • 5 Pages

    The purpose of this paper is to compare and contrast five design patterns. An explanation of design patterns begins the paper. After the explanation are sections on Adapter, Facade, Factory Method, Observer, and Proxy. A conclusion completes the paper.…

    • 1044 Words
    • 5 Pages
    Better Essays
  • Better Essays

    Continuum of Care

    • 1396 Words
    • 6 Pages

    This paper will explain the components of the Home Health Care delivery system of continuum. The reader will be able to understand some of the services provided by the home health care system and how they fit into the continuum of care. It will give details on how the entity does or does not contribute to the overall management of healthcare resources.…

    • 1396 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Unbearable Lightness Theme

    • 1223 Words
    • 5 Pages

    Often times in life, people are blinded by their own perceptions, unable to recognize the emotions of those around them. This theme is exhibited within the memoir Unbearable Lightness, written by Portia De Rossi. The author delineates the struggles present within her life as a result of her eating disorder. But despite her tribulation, throughout the majority of the text, Rossi is unable to acknowledge the fact that her habits are threatening to both her mental and physical health. However, her mother, empowered by her love and concern towards her daughter, recognizes Rossi’s crippling well-being, bringing forth a new perspective into her life. In regards to this, Portia De Rossi incorporates the element of characterization, specifically thoughts and the effect on others, to portray the theme of it may take an alternative standpoint to shed light on the truth that has since been hidden beneath one’s personal perception.…

    • 1223 Words
    • 5 Pages
    Good Essays
  • Good Essays

    2. The application server (also called middleware), whose task it is to provide the requested…

    • 1004 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Asp.Net Pdf

    • 33971 Words
    • 136 Pages

    Scott Mitchell, Bill Anders, Rob Howard, Doug Seven, Stephen Walther, Christop Wille, and Don Wolthuis…

    • 33971 Words
    • 136 Pages
    Powerful Essays
  • Good Essays

    Web Application Development

    • 3763 Words
    • 16 Pages

    The growth of the World-Wide Web (WWW or simply Web) today is simply phenomenal. Each day, thousands more people gain access to the Internet (upwards of 6 million users at recent estimates). Easy retrieval of electronic information in conjunction with the multimedia capabilities of Web browsers (like Mosaic or Netscape) is what started this explosion. This document will provide some basic information behind some of this technology used in accessing the World-Wide Web.…

    • 3763 Words
    • 16 Pages
    Good Essays
  • Satisfactory Essays

    bluej conclusion

    • 1557 Words
    • 7 Pages

    BlueJ was developed to support the learning and teaching of object-oriented programming, and its design differs from other development environments as a result. The main screen graphically shows the class structure of an application under development (in an UML-like diagram), and objects can be interactively created and tested.…

    • 1557 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    Next chapter is Methodology. In this I explain my solution method of my web application. I draw the different diagrams i:e Flow charts, Data Flow Diagrams, Entity Relationship Diagrams, different Processes and Use case Diagrams etc. In this chapter I also explain my implementation and testing tools through which I will design my application. For example I will HTML and PHP as programming languages and Mysql is use for Database Design. In the last I explain chapter summary.…

    • 1311 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    In this new chapter I further enhanced my arsenal of programming languages when I got trained in PeopleSoft an ERP product of Oracle and started working as Peoplesoft Technical Consultant. After 3 months of rigorous peoplesoft technical training in January 2011 I was deployed to an on-going implementation project of Peoplesoft Campus Solutions in one of the most prestigious schools of India i.e. Indian Institute of Technology Delhi(IITD).During my 1st tenure starting from Jan 2011-Nov2011 at IITD I learnt the basic technical concepts of Peoplesoft (Peoplecode,Application Engine,Component Interface etc. ) coupled with a glimpse of various functional phases of SDLC.During this tenure I simultaneously explored another product of Peoplesoft i.e. EnterPrise Portal 9.0 completely on my own.I further took my professional learning curve to next stage when I went to another client of WIPRO and one of the most prestigious college of India Birta Institute of Technology (BITS Pilani) to implement features of Enterprise Portal like Single Sign On,Pagelets etc. that I explored in IITD. After 4 months of implementation I came back for my 2nd tenure at IITD to explore not only the technical tools like Approval Workflow Engine (AWE) and XML Publisher reports but also got a chance to work functionally and interact with esteemed clients of IITD especially honourable Director of IITD. Being a part of high demanding implementation project for 2 long years and with the inherent passion to explore new dimensions I decided to move…

    • 807 Words
    • 4 Pages
    Good Essays

Related Topics