Application of MVC pattern in the J2EE Project (2)

Source: Internet
Author: User

Application of MVC pattern in the J2EE Project (2)
Author: FavoYang Email: favoyang@yahoo.com welcome
Keywords: MVC case model
Abstract:
If you want to test your knowledge, the best way is to practice her. Using a project named "NOTE" (Notepad) and the MVC pattern to build it, we can see the strength and flexibility of MVC. Note that the term MVC is not used in this article. Instead, it is called boundary class, control class, entity class, and lifecycle class. For the changes of MVC on the j2_based architecture, please refer to (1) in this article, especially my practices. Otherwise, it is difficult to communicate.
This article focuses on the overall design and has not discussed much in detail.
I want a good sleep.
Copyright:
This article is also published on www.j2medev.com and my Blog (blog.csdn.net/alikeboy). If you need to reprint it, there are three ways: 1) contact me and I agree to it; 2) I have a cooperation agreement with www.j2medev.com for reprinting articles. 3) Use Rss to aggregate my Blog. In addition, the full text must be forwarded on the Internet (including the statement in the header of the article). Do not take it out of context.
Body:
Note Project Description
A mobile phone is a digital terminal that we carry with us. Apart from making phone calls and sending messages, we often ask him to help us record textual information. PDA has a large screen and handwriting input function, while the notebook function on the mobile phone is limited, the recorded content is very simple. It can be said that the use of mobile phone recording information is a function that is taken for granted, and also creates a series of applications-using mobile phones as information collectors anytime, anywhere. It is not hard to imagine that such applications will use a certain market. The Note notepad project we selected today is the prototype of the standalone version of such applications.
Note is a built-in application of many mobile phones. It is generally called notepad or Note, which indicates that it is a very common service. Maybe friends may think that developing an existing program is not challenging. Yes, the most taboo in development is to repeat the wheel, but it can be said for teaching. After all, a simple prototype program won't bring us into too many details. My main purpose is to introduce the MVC pattern application method.
Note provides mobile phone users with the ability to record some brief information. Users can add records, open browsing records, and modify records that have been stored on mobile phones at any time. Of course, they can also be deleted. It is like notepad in Windows, but it only has more management functions.
Case Analysis
First, imagine who is using this program: mobile phone users. Well, we will call this participant user later ).
Then imagine what users are doing with our NOTE (we call it a record in Chinese? Obviously, you can add a new record, browse the added record, modify the added record, and delete the record. A record should simply include the user's name for the record, the time when the record was created or modified, and the content of the most important record.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.