Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing MVC

A model and controller technology, applied in the direction of program control devices, etc., can solve the problem that the framework cannot be completely suitable, and achieve the effect of improving development efficiency, convenient operation and good user experience.

Inactive Publication Date: 2009-11-25
BEIJING YIQI TELECOMM TECH
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The existing framework of enterprise-based applications is not completely suitable, so the company must develop a unified platform to improve the company's market competitiveness

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing MVC

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Central thought of the present invention is, javascript realizes the method [JavaScriptMVC for short] of MVC as controller, under JavaScriptMVC, model, view and controller function are as follows:

[0038] View - used for interaction with the user, implemented in HTML.

[0039] Model-realize the business logic in the system, and generate HTML code fragments, which are realized by JSP. The model mainly provides some code fragments for the view, but it is not responsible for the layout of the entire page display and the control of switching between pages.

[0040] Controller - is the bridge between the model and the view, which determines which models to display on the page. The controller is implemented through javascript.

[0041] The logic of the view and model is relatively simple. However, the control logic is relatively complicated, and will be described in detail below in conjunction with the accompanying drawings.

[0042] Such as figure 1 As shown, the speci...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method used for realizing MVC by taking JavaScript as a controller. Models and view-interaction with a user are realized by HTML under JavaScript MVC. Models-realization of service logic in a system and generation of HTML code snippets are realized by JSP. The models mainly provide part of code snippets for the view but do not take charge of the arrangement of entire page display and the control of page switching. The controller, which is realized through JavaScript, is a bridge between the models and the view and determines which models are shown on the page. Through JavaScript MVC, the method ensures convenient operation of developers and increases the development efficiency to develop program quickly. Moreover, because JavaScript MVC is based on Ajax, local page refreshing is realized and friendlier interfaces can be provided for users to ensure excellent user experience.

Description

Technical field: [0001] The invention relates to the application development environment of the Web platform, in particular to a method for realizing MVC. Background technique [0002] With the continuous development of network technology, the establishment trend of the current information system is to adopt the B / S structure, the user interface is realized through the WWW browser, and a very small part of the transaction logic is realized on the front end, but the main transaction logic is realized on the server side. Form the so-called three-tier structure MVC. [0003] The current J2EE development mainly adopts the MVC mode (Model-View-Controller, Model-View-Controller mode). It divides the software system into three basic parts: model (Model), view (View) and controller (Controller). The purpose of the MVC model is to realize the functional division of the Web system: [0004] View - used for interaction with the user, usually implemented with JSP. [0005] Model - r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 黄平
Owner BEIJING YIQI TELECOMM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products