CN100520717C - Service assemblage based on MVC and method for page moulding development WEB platform - Google Patents

Service assemblage based on MVC and method for page moulding development WEB platform Download PDF

Info

Publication number
CN100520717C
CN100520717C CNB2007101314932A CN200710131493A CN100520717C CN 100520717 C CN100520717 C CN 100520717C CN B2007101314932 A CNB2007101314932 A CN B2007101314932A CN 200710131493 A CN200710131493 A CN 200710131493A CN 100520717 C CN100520717 C CN 100520717C
Authority
CN
China
Prior art keywords
page
component
assembly
template
html
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2007101314932A
Other languages
Chinese (zh)
Other versions
CN101158896A (en
Inventor
张翅
张青
朱佳敏
易杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asialnfo Technology (Nanjing) Co., Ltd.
Original Assignee
LINKAGE SYSTEM INTEGRATION CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LINKAGE SYSTEM INTEGRATION CO Ltd filed Critical LINKAGE SYSTEM INTEGRATION CO Ltd
Priority to CNB2007101314932A priority Critical patent/CN100520717C/en
Publication of CN101158896A publication Critical patent/CN101158896A/en
Application granted granted Critical
Publication of CN100520717C publication Critical patent/CN100520717C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A method of MVC-based service assembly and page development WEB is based on MVC design mode, the M layer is realized by JavaBean, EJB, and Tuxdeo, the V layer is realized by HTML, the C layer is realized by page type, so as to completely separate pages and the logic; a page template is based on HTML extended tags and extended attributes to express the logic, the tags can be added in the HTML to express effects of dynamic pages; a component-based method: other components can be nested and used in a component template; the component is a part of the page template, which can generate a part of HTML codes during operation; all the attributes in the component are provided in a component configuration file, the attributes not provided in the component configuration file can be considered as html attributes for use; concrete steps on function point development of the page module are included.

Description

Business assembling and Page Template based on MVC melt the method for sending out the WEB platform
One, technical field
The present invention relates to the Application development environ-ment of WEB platform, especially business assembling and the Page Template based on MVC melts the method for sending out the WEB platform.
Two, background technology
Along with the continuous rise of Internet technology, perfect, the trend that the current information system builds is to adopt the B/S structure to substitute the C/S structure.The user job interface is to realize by the WWW browser, and few part affairs logic realizes at front end (Browser), but main affairs logic forms so-called three layers of 3-tier structure in server end (Server) realization.So just simplify client load greatly, alleviated the cost and the workload of system maintenance and upgrading, reduced user's overall cost (TCO).
Internet technology and related specifications numerous and complicated, this just caused the B/S structure project often occur delaying, be not easy control, nonstandard phenomenon.Such as DHTML, XML, CSS, JavaScipt isotactic model body is just very mixed and disorderly, and the relatively unusual bottom of J2EE Servlet standard lacks one efficiently, possess abstract accumulation and extendible platform, various WEB development schemes are full of in the current WEB system.
Project based on the B/S structure, traditional relatively C/S structure, because the affairs logical centralization is realized at server end, though simplified the load of client, but also increased the weight of the load of server end simultaneously, project based on the B/S structure is needing level framework more clearly aspect the system architecture like this, has so just emerged in large numbers a large amount of based on the MVC pattern framework of increasing income.C/S (Client/Server) structure, i.e. everybody client-server structure of knowing.It is a software system architecture, can make full use of the advantage of two ends hardware environment by it, and the task reasonable distribution is brought in realization to Client end and Server, has reduced the communication-cost of system.Present most of application software system all is the double-layer structure of Client/Server form, because present software application system is to distributed Web application development, Web and Client/Server use can carry out same business processing, uses different module shared logic assemblies; Therefore, the inner user with the outside can visit new and existing application system, can expand the application system that makes new advances by the logic in the existing application system.This is the developing direction of present application system just.
Though what traditional C/S architecture adopted is open mode, this is the opening of system development one-level, is that Client end or Server end all also need specific software support in specific application.The user is provided owing to fail the open environment of real expectation, the software of C/S structure need be at the software of different operating system system development different editions, the update of product is very fast in addition, has been difficult to adapt to hundred above LAN subscriber of computer and has used simultaneously.And the cost height, efficient is low.
B/S (Browser/Server) structure is browser and server architecture.It is the rise along with the Internet technology, to a kind of variation or the improved structure of C/S structure.Under this structure, the user job interface is to realize by the WWW browser, and few part affairs logic realizes at front end (Browser), but main affairs logic forms so-called three layers of 3-tier structure in server end (Server) realization.So just simplify client computer load greatly, alleviated the cost and the workload of system maintenance and upgrading, reduced user's overall cost (TCO).
See that with present technology LAN (Local Area Network) is set up the network application of B/S structure, and by database application under the Internet/Intranet pattern, be easy to relatively hold, cost also is lower.It is the disposable exploitation that puts in place, can realize different personnel, and from different places, (such as LAN, WAN, Internet/Intranet etc.) visits and operate common database with different access waies; It is protected data platform and management access authority effectively, and server database is also very safe.Particularly after the so cross-platform language of JAVA occurred, B/S framework management software was convenient, fast especially, efficient.
MVC under the MVC pattern (Model-View-Controller) application structure is used to the feature of analysis distribution formula application program.This abstract structure can help application program is divided into some logical blocks, program design is become to be more prone to, though separator page represents and service logic fully, but webpage representation needs the developer to understand enough DHTML, CSS, JavaScript knowledge, and need certain being familiar be arranged to INTERFACE DESIGN such as page composings.
In this case,, simpler on traditional C/S pattern than B/S mode development based on visual development scheme, be easier to left-hand seat.Need like this based on assembly, based on the framework of the MVC pattern of template development mode, not only can meet large-scale commerce on the framework level uses, and in the exploitation of project and safeguard can be based on assembly, template and unified encapsulation, simplify exploitation to greatest extent, improve development efficiency, to be more conducive to the commercialization that project is used like this, and be more conducive to the division of labor of development teams and improve development efficiency.
But, on the framework that provides based on the mode of increasing income, it is too wide to need the developer to understand the scope of one's knowledge of study, too in complexity, and it is too frequent to upgrade upgrading, causes the developer to be difficult to catch up with new technology fully, and can not be suitable fully based on the existing framework of the application of enterprise, like this intra-company is essential can the unitized overall development platform, improve company's market influence and competitive power.
Three, summary of the invention
The present invention seeks to propose a kind of business assembling and Page Template and melt the method for sending out the WEB platform based on MVC.
Technical solution of the present invention is: business assembling and Page Template based on MVC melt the method for sending out WEB, based on the MVC Design Mode, the M layer realizes that by JavaBean, EJB, Tuxdeo the V layer is realized by HTML, the C layer is realized by classes of pages, the page can be separated fully with logic like this;
Page Templateization, express logic based on HTML extending marking and extended attribute, only need to add that in HTML mark can give expression to the dynamic page effect, make things convenient for art designing and programmer to share page development, the art designing stresses page effect, and the programmer stresses page logic.
Based on modularity: can other assemblies of nested use in the component template, nested except that the core component storehouse, other assembly need define in Component Gallery;
Assembly belongs to the part of Page Template, generating portion HTML code when operation;
All properties in the assembly all provides in component profile, and the attribute that does not provide for component profile can use as the attribute of html;
Figure C200710131493D00051
Modular construction and formation
Assembly can be regarded an atomic element that can be re-used in fact as, and from the UI interface, it can be summed up as public part zone, selects assembly as the employee; From service logic, it has encapsulated one section unified service logic, as department organization structure tree.
An assembly physically, its file form with a page be duplicate, html masterplate (be not complete, but part); The xml configuration; The java code
Figure C200710131493D00052
The exploitation of single type components class
Component class is write public abstract class SimpleField extends AppFormComponent{
public?abstract?String?getValue();
protected?void?renderComponent(IMarkupWriter?writer,IRequestCycle?cycle){
IForm?form=getForm(cycle);
String name=form.getElementId (this); // securing component title
If (! Cycle.isRewinding ()) // whether recoil, if recoil then do not construct the page
Body?body=Body.get(cycle);
if(body==null){
throw?new?ApplicationRuntimeException(Tapestry.format(
"must-be-contained-by-body","SimpleField"));
}
String?value=getValue();
writer.beginEmpty("input");
writer.attribute("type","text");
writer.attribute("name",name);
writer.attribute(“value",value);
RenderInformalParameters (writer, cycle); // for undefined other attributes in the assembly of quoting also output again, class=..., all information of filling in the time of can guaranteeing references component like this can both be preserved former state;
1) references component in the page:<input type=" text " jwcid=“ @xxx:SimpleField " value=" ognl:info.VALUE " class=" ... " /
2) common method writer.begin (" select "), writer.end () must finish with end for begin; Writer.beginEmpty (" input ") does not need end to finish for this mode, writer.print (" ... ") can arbitrarily write content
Figure C200710131493D00061
Arrangement of components
1, component registration (.library) in Component Gallery:
<library-specification>
<component-type?type="Login"specification-path="login/Login.jwc"/>
<library?id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
</library-specification>
The component registration storehouse is (.application) in global configuration:
<library?id=“quickstart"
specification-path="/com/linkage/quickstart/jwcs/quickstart.library"/>
Figure C200710131493D00062
Assembly uses
1, assembly uses in Page Template, and by the attribute of component definition, assembly is used in configuration flexibly
2, list-type assembly uses:
<input?type=”text”jwcid=”BEGIN_DATE@wade:TextField”
value=”ognl:info.BEGIN_DATE”format=”yyyy-MM-dd?HH:mm”/>
3, combined assembly uses:
<span?jwcid=”@wade:NavBar”source=”ognl:infos”
listeners=”ognl:listeners.querySchedules”/>
The present invention utilizes the MVC pattern that displaying interface and service logic are separated fully, such application is divided into model layer, view layer, key-course, the model layer logic of managing business wherein, the view layer represents interfacial effect, and key-course is used for being connected webpage representation and service logic.
On above-mentioned basis, separator page represents and service logic fully on the program application architecture, can separate art designing and programmer fully simultaneously, and the art designing is absorbed in Interface Design such as page composing layout, and the programmer can be absorbed in the logic Modification of program, is independent of each other between the two.
The WEB platform WADE that the present invention produces, be take out in the Portal Service on BOSS1.5 and the telecommunications network, based on the business development and the running environment of assembly, itself also is the infrastructure component platform of an application simultaneously.Its purpose is to upper strata application system shielding underlying platform and ins and outs on the one hand, and relevant instrument is provided, so that the application developer can pay close attention to the business field more; WADE also provides the environment of a professional flexibly assembling and operation on the other hand, is " modularization " of the upper-layer service system condition that provides the foundation, and based on the infrastructure component platform stable operation of WADE.
WADE goes for professional enterprises operation system, also goes for the outside gate system of enterprise.As the basic WEB platform of telecommunications industry application software, have foreseeable, more permanent influence and competitive power at present.
On the one hand, it realizes the major technique of telecommunications industry WEB system at present, verified exploitation high efficiency, stability, the extensibility of this platform environment in implementing BSS system of a new generation of mobile BOSS1.5 and UNICOM, in the process of implementing BOSS2, BOSS2 commmunication company enterprise portal, more can strengthen client's degree of belief simultaneously, create the more products sales opportunnities; On the other hand, as the basic platform that has adopted current advanced WEB advanced technology thought; The target customer of application of the present invention and range of application:
The research and development target of WADE1.0 is the basis operation and Development Framework (or assembly) for the WEB platform of telecommunications industry business support system, though it does not directly sell the directly development and application of multiplexing this assembly of range of application at present towards the final user.Along with the development of following WADE and to the extension of service layer, can form external member on its basis gradually towards a plurality of applications, as by Eclipse RCP mode, can provide the RapidIDE instrument of specialty to the client.Can the crm system of framework on the WADE framework be refined into the CRM product by integrating the technology of SOA and BPM, push more areas to.As by after promoting WADE, assembly itself also can be formed a market, encourage more people to participate in the assembly exploitation.
Effect of the present invention: WADE mainly contains on the WEB development approach and has adopted masterplateization, com technique, thereby has guaranteed maximum dirigibility and extensibility.In actual application, carried out the optimization component design at many aspects such as buffer memory, file processing, graphics process, to have passed through high real system concurrent, big data quantity and checked, it has the special advantages of oneself at undertaking of construction WEB system aspects:
1) WEB technology itself is maked rapid progress, design of WADE core frame platform self and ins and outs possess separation layer, can introduce up-to-date technology fast;
2) on the basic platform component platform is arranged, but this component platform itself possesses the characteristic of suit, distribution
3) based on the technology of masterplate, the mutual design of UI is thoroughly spun off, can really the User Interface design be gone on.
4) with respect to the existing MVC framework of increasing income, key property comprises:
√ has inherited some advantages of the framework of increasing income, as Page Template, based on modularization etc., provides unified encapsulation to assembly and service logic commonly used simultaneously, has at utmost simplified complexity of developing, guarantees the consistance of exploitation.
√ is based on the MVC Design Mode, and the M layer realizes that by JavaBean, EJB, Tuxdeo the V layer is realized that by HTML the C layer is realized by classes of pages, the page can be separated fully with logic like this.
The √ Page Templateization, express logic based on HTML extending marking and extended attribute, only need to add that in HTML mark can give expression to the dynamic page effect, make things convenient for art designing and programmer to share page development, the art designing stresses page effect, and the programmer stresses page logic.
√ can simplify page development based on modularity, reuses assembly, improves the consistance that development efficiency also can keep program to greatest extent.
The √ page cache, the page is resolved needs resource, can improve operational efficiency greatly behind the buffer memory page.
The issued transaction that √ is unified, unified connection management, unified abnormality processing, these are sightless for the developer, can guarantee the stability of system to greatest extent.
The client verification that √ is unified, unified page navigating mode, can be between multisystem redirect mutually, making can seamless connection between each system.
√ is based on the mechanism of the asynchronous submission of Ajax, and the page is refreshed in the realization part, for the user provides more friendly interface, and can improve developer's development efficiency.
√ provides the interface of using based on EJB, can easily provide interface for other system.
5) in the long run; WADE has then brought communication to wait the opportunity of industrial application software commercialization; and provide visible, effective path; this is for the scale effect that promotes the applicant or other software company's software operation; further participate in international market competition, the influence that promotes in industry all has great importance.
Four, description of drawings
Fig. 1 is the WEB platform structure block diagram that the inventive method constitutes
Fig. 2 is that the WADE envelope has been changeed a large amount of infrastructure components, the structural drawing of Service Component
Five, embodiment
WADE is made up of with relevant integration tool the assembly of one group of high degree of autonomy among Fig. 1, has good reusability, and general structure is as figure;
WADE itself also seals infrastructure component, the Service Component that has changeed a large amount of, and Fig. 2 is as follows for its modular construction:
The exploitation of page module function point:
1, WADE uses operational scheme:
1) starts application server, load the WEB that disposes and use
2) WEB use to seek deployment descriptor (web.xml), as the inlet of program run, and loads some configurations of servlet, filter, monitor, session
3) client submits to access path to initiate request to server end, and server end searches out the Servlet of client-access in web.xml, owing to disposed filter, the root path of visit can navigate among the app Servlet of configuration
4) find .application configuration file of the same name by the title that disposes among the app Servlet, as quickstart.application
5) dispose among the loading .application, comprise some configurations of Engine, Visit, Page
6) submit to the page of visit to call according to client, in the .application file, find the corresponding page file of page another name of registration
7) find corresponding java by the page file, the html file reaches and seeks the resource purpose
2, the concrete steps of function point exploitation
1) prepare the resource that development function point needs, comprise Page Template (.html), page standard (.page), classes of pages (.java), and concrete service logic.
2) registering functional point is registered to the page standard of finishing writing among the .application in the .application file, and defines unique name.
3) configuration testing menu newly adds the menu code in Siderbar.html, as:
redirectToNav(‘util.SchedultList’,‘querySchedules’);
4) click the menu debugged program.
3, page standard is write
1), page standard is as the hinge that is connected Page Template and classes of pages, needs the path of definition classes of pages, Page Template, needs to define used all objects of Page Template simultaneously, as:
The path of<-definition classes of pages-
<page-specification?class="com.linkage.quickstart.view.util.ScheduleList">
The object name that<-definition Page Template need be used and the structure of object-
<property-specification?name="condition"
type="com.linkage.appframework.data.IData"/>
</page-specification>
2), supplementary notes:
(1) can define the path of classes of pages in the page standard, the mapping ruler of page standard corresponding page template exactly by page authority file with the .html file of (not containing extended file name) of same filename under the catalogue
(2) page standards must a corresponding Page Template and a classes of pages
(3) Page Templates must corresponding page standards, and classes of pages can corresponding a plurality of page standards, that is to say that a plurality of Page Templates can a shared classes of pages
4, classes of pages is write
1), classes of pages is as the key-course among the MVC, mainly is the hinge that is used for being connected between the service logic and the page, and service logic is submitted in the request of the page, gives the page by feedback result after the business logic processing.
The result object that classes of pages is mainly write the incident of response page and fed back to the page, as:
public?abstract?class?ScheduleList?extends?AppPage{
Need in/* definition the Page Template object * that uses/
public?abstract?void?setInfos(IDataset?infos);
public?void?querySchedules(IRequestCycle?cycle)throws?Exception{
/ * structure page context object */
PageData?pd=getPageData();
IDataset infos=... (data of obtaining by logic);
/ * with the data assignment obtained give this object for Page Template use */
setInfos(infos);
2), supplementary notes:
(1) classes of pages must be inherited AppPage or its subclass, otherwise can't form a function with Page Template, page standard;
(2) abstract method is used in the attribution method suggestion that offers the Page Template use of definition, otherwise must if do not empty, can cause entanglement with object clear sky when the page is finished, and note: the abstract method of definition must define in page standard;
(3) Ding Yi response events must have parameter I RequestCycle cycle, otherwise can't discern the response events that this method is based on the page in the page;
(4) PageData is as page context object, can obtain in the page of submitting server to all objects and can transmit parameter to one page down;
5, Page Template is write
1), Page Template mainly be the data exhibiting that will obtain in the service logic in the page, and to some controls of page operation, the Page Template structure is as follows:
<html?xmlns="http://www.w3.org/1999/xhtml">
<head?jwcid="@wade:Head">
<meta?http-equiv="Content-Type"content="text/html;charset=gbk"/>
<title>Schedule?List</title>
<link?href="/component/styles/styles_all.css"rel="stylesheet"type="text/css"media="screen"/>
</head>
<body?jwcid="@Body">
<formjwcid="@Form">
2), supplementary notes:
1) represents dynamic content, the related resource and the explanation of head representation page template, the content of body representation page template for displaying with jwcid sign in the template in the page;
2) wherein the Head assembly mainly is to import some public resources, and as the JavaScript storehouse, the Body assembly is the support of assembly container for most of assembly, and the Form assembly is being submitted server to the post mode;
3) the ognl mark is represented to come dynamic expression content with the Java expression formula;
The exploitation of assembly
The concrete steps of assembly exploitation
1) prepares the resource that assembly needs, comprise component template (.html), component specifications (.jwc), component class (.java).
2) write assembly, need write component template, then do not need for the unicity assembly for combined assembly.
3) assembly that writes of registration is registered to the component specifications of finishing writing among the .library in the .library file, and defines unique assembly name in Component Gallery.
4) component registration storehouse, in the .application file with the Component Gallery file registration finished writing in .application, and define unique Component Gallery name.
5) debug component.
Figure C200710131493D00111
Assembly exploitation classification
The assembly exploitation is divided into two kinds:
1), the single type assembly, generally the assembly based on minimum particle size uses the single type assembly, the HTML code of the assembly of the type is write in component class, so assembly only comprises component class, component specifications.
2), combined assembly, generally use combined assembly based on a page area, the HTML code of the assembly of the type realizes in component template, so assembly comprises component template, component class, component specifications.
Component specifications is write
1), component specifications is as the hinge that is connected component template and component class, needs the path of definitions component class, component template, needs used all objects of definitions component template simultaneously, as:
<component-specification?class="com.linkage.quickstart.jwcs.login.Login"allow-body="no"allow-informal-parameters="no">
<description>login.</description>
<parameter?name="listener"type="org.apache.tapestry.IActionListener"required="yes"/>
<component?id="bsubmit"type="Submit">
<inherited-binding?name="listener"parameter-name="listener"/>
</component>
</component-specification>
2), supplementary notes:
(1) path that can the definitions component class in the component specifications, the mapping ruler of the component template of component specifications correspondence exactly by the component specifications file with the .html file of (not containing extended file name) of same filename under the catalogue.
(2) all properties that defines in the assembly can be developed to the user, like this during references component arbitrarily the attribute of definitions component reach the effect of dynamic use assembly.
Figure C200710131493D00113
Component class is write (combined assembly)
1, component class mainly is the hinge that is used for being connected between service logic and the assembly, and the result after handling is fed back to assembly.
2, component class is mainly write the dynamic data that component template need be used, as:
public?abstract?class?Login?extends?AppTempletComponent{
protected?void?renderComponent(IMarkupWriter?writer,IRequestCycle?cycle){
super.renderComponent(writer,cycle);
3, supplementary notes:
1) component class must be inherited BaseComponent or its subclass, otherwise can't form a function with component template, component specifications.
2) component class must be realized the renderComponent method, and this method is used for representing the effect in the component template.
Component template is write (combined assembly)
1, component template mainly be the data exhibiting that will obtain in the service logic in the page, the component template structure is as follows:
<div?class="login">
<table?width="100%"border="0"cellspacing="0"cellpadding="0">
<tr>
<td class=" mylf "〉user name:</td 〉
<td?class="myrt"><label>
<input type=" text " name=" STAFF_ID " desc=" user name " nullable=" no " equsize=" 8 " datatype=" text " onfocus=" select (); "/〉
2, supplementary notes:
Can other assemblies of nested use in the component template, nested except that the core component storehouse, other assembly need define in Component Gallery
Figure C200710131493D00121
Component class exploitation (single type assembly)
1, component class is mainly write, as:
public?abstract?class?SimpleField?extends?AppFormComponent{
public?abstract?String?getValue();
protected?void?renderComponent(IMarkupWriter?writer,IRequestCycle?cycle){
IForm?form=getForm(cycle);
String name=form.getElementId (this); // securing component title
If (! Cycle.isRewinding ()) // whether recoil, if recoil then do not construct the page
Body?body=Body.get(cycle);
RenderInformalParameters (writer, cycle); // for undefined other attributes in the assembly of quoting also output again, as class=..., all information of filling in the time of can guaranteeing references component like this can both be preserved former state;
2, supplementary notes:
Such as references component in the page:<input type=" text " jwcid=“ @xxx:SimpleField " value=" ognl:info.VALUE " class=" ... " /
Common method writer.begin (" select "), writer.end () must finish with end for begin; Writer.beginEmpty (" input ") does not need end to finish for this mode, writer.print (" ... ") can arbitrarily write content
Arrangement of components
1, component registration (.library) in Component Gallery, as:
<library-specification>
<component-type?type="Login"specification-path="login/Login.jwc"/>
<library?id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>
</library-specification>
2, component registration storehouse (.application) in global configuration, as:
<library?id=“quickstart"
specification-path="/com/linkage/quickstart/jwcs/quickstart.library"/>
Figure C200710131493D00123
Assembly uses
1, assembly uses in Page Template, and by the attribute of component definition, assembly is used in configuration flexibly
2, the single type assembly uses, as:
<input?type=”text”jwcid=”BEGIN_DATE@wade:TextField”
value=”ognl:info.BEGIN_DATE”format=”yyyy-MM-dd?HH:mm”/>
3, combined assembly uses, as:
<span?jwcid=”@wade:NavBar”source=”ognl:infos”
listeners=”ognl:listeners.querySchedules”/>
4, supplementary notes:
1) assembly belongs to the part of Page Template, generating portion HTML code when operation
2) all properties in the assembly all provides in component profile, and the attribute that does not provide for component profile can use as the attribute of html.

Claims (3)

1, business assembling and the Page Template based on MVC melts the method for sending out WEB, it is characterized in that
Based on the MVC Design Mode, the M layer realizes that by JavaBean, EJB, Tuxdeo the V layer is realized that by HTML the C layer is realized by classes of pages, and the page is separated fully with logic;
Page Templateization is expressed logic based on HTML extending marking and extended attribute, only needs to add that in HTML extending marking can give expression to the dynamic page effect;
Based on modularity: other assemblies of nested use in the assembly, nested except that core component, other assembly need define in Component Gallery;
Assembly belongs to the part of Page Template, generating portion HTML code when operation; All properties in the assembly all provides in component profile, and the attribute that does not provide for component profile can use as the attribute of HTML;
The step of arrangement of components is:
1), component registration is in Component Gallery;
2), the component registration storehouse is in global configuration;
The method that assembly uses comprises:
1), assembly uses in Page Template, by the attribute of component definition, assembly is used in configuration flexibly;
2), the single type assembly uses;
3), combined assembly uses.
2, business assembling and the page module based on MVC according to claim 1 melts the method for sending out WEB, it is characterized in that: the concrete steps of page function point exploitation:
1) prepare the resource that development function point needs, comprise Page Template, page standard, classes of pages, and concrete service logic;
2) registering functional point is registered to the page standard of finishing writing in the .application library in the .application file, and defines unique name;
3) configuration testing menu newly adds the menu code in Siderbar.html;
4) click the menu debugged program;
Page standard is write: page standard needs the path of definition classes of pages, Page Template as the hinge that is connected Page Template and classes of pages, needs to define used all objects of Page Template simultaneously;
Classes of pages is write: classes of pages as the hinge that is connected between the service logic and the page, is submitted to service logic with the request of the page as the key-course among the MVC, gives the page by feedback result after the business logic processing; The result object that classes of pages is write the incident of response page and fed back to the page:
Page Template is write: Page Template mainly is that the data exhibiting that will obtain in the service logic is in the page, and to some controls of page operation;
The concrete steps of assembly exploitation:
1) prepares the resource that assembly needs, comprise component template, component specifications, component class;
2) write assembly, need write component template, then do not need for the single type assembly for combined assembly;
3) assembly that writes of registration is registered to the component specifications of finishing writing in the .library library in the .library file, and defines unique assembly name in Component Gallery;
4) component registration storehouse, in the .application file with the Component Gallery file registration finished writing in the .application library, and define unique Component Gallery name;
5) debug component;
The assembly exploitation is divided into two kinds:
1), the single type assembly, use the single type assembly based on the assembly of minimum particle size, the HTML code of the assembly of the type is write in component class, assembly only comprises component class, component specifications;
2), combined assembly, use combined assembly based on a page area, the HTML code of the assembly of the type realizes in component template, so assembly comprises component template, component class, component specifications:
Component specifications is write:
Component specifications needs the path of definitions component class, component template as the hinge that is connected component template and component class, needs used all objects of definitions component template simultaneously;
Component class is write:
1), component class mainly is as the hinge that is connected between service logic and the assembly, and the result after handling is fed back to assembly;
2), component class is mainly write the dynamic data that component template need be used.
3, business assembling and the page module based on MVC according to claim 1 melts the method for sending out WEB, it is characterized in that WEB platform WADE uses operational scheme, and the concrete steps of function point exploitation is:
1), WADE uses operational scheme:
A, startup application server load the WEB that disposes and use;
B, WEB use to seek deployment descriptor web.xml, as the inlet of program run, and load some configurations of servlet, filter, monitor, session;
C, client submit to access path to initiate request to server end, and server end searches out the Servlet of client-access in web.xml, owing to disposed filter, the root path of visit can navigate among the app Servlet of configuration;
D, find .application configuration file of the same name by the title that disposes among the app Servlet;
Dispose among E, the loading .application, comprise some configurations of Engine, Visit, Page;
F, the page another name that submission is visited according to client find the page of registration to call corresponding .page file in the .application file;
G, find corresponding .java by the .page file, the .html file reaches and seeks the resource purpose;
2), the concrete steps of function point exploitation
The resource that A, preparation development function point need comprises Page Template, page standard, classes of pages, and concrete service logic;
B, registering functional point are registered to the page standard of finishing writing in the .application library in the .application file, and define unique name,
C, configuration testing menu newly add the menu code in Siderbar.html,
D, click menu debugged program;
Page standard is write: page standard needs the path of definition classes of pages, Page Template as the hinge that is connected Page Template and classes of pages, needs to define used all objects of Page Template simultaneously.
CNB2007101314932A 2007-08-31 2007-08-31 Service assemblage based on MVC and method for page moulding development WEB platform Active CN100520717C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101314932A CN100520717C (en) 2007-08-31 2007-08-31 Service assemblage based on MVC and method for page moulding development WEB platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101314932A CN100520717C (en) 2007-08-31 2007-08-31 Service assemblage based on MVC and method for page moulding development WEB platform

Publications (2)

Publication Number Publication Date
CN101158896A CN101158896A (en) 2008-04-09
CN100520717C true CN100520717C (en) 2009-07-29

Family

ID=39307007

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101314932A Active CN100520717C (en) 2007-08-31 2007-08-31 Service assemblage based on MVC and method for page moulding development WEB platform

Country Status (1)

Country Link
CN (1) CN100520717C (en)

Families Citing this family (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169431A (en) * 2010-02-26 2011-08-31 国际商业机器公司 Method and device for generation of optimized user interface
CN102004640B (en) * 2010-11-11 2013-05-08 深圳市文鼎创数据科技有限公司 Method and device for rapidly providing customized software package
CN102012916A (en) * 2010-11-24 2011-04-13 深圳市五巨科技有限公司 Method and device for realizing display of dynamic page table data
CN102149018B (en) * 2010-11-30 2013-04-24 广东星海数字家庭产业技术研究院有限公司 Safe protection processing method and system applying HSML (Hot Spot Markup Language) analyzing engine
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN103166916B (en) * 2011-12-12 2016-08-17 深圳市金蝶中间件有限公司 Method for updating pages and system
CN103176778B (en) * 2011-12-21 2017-04-05 北大方正集团有限公司 Web development methods and device
CN102799430B (en) * 2012-07-02 2015-07-15 电子科技大学 Mobile internet business-oriented off-line visual business development generator
CN102902537B (en) * 2012-09-19 2016-03-30 厦门亿联网络技术股份有限公司 Based on the embedded type WEB MVC Development Framework of FastCGI and html template
CN102915244A (en) * 2012-09-28 2013-02-06 方正国际软件有限公司 Trinity page development system
CN103034504A (en) * 2013-01-05 2013-04-10 湖南经桥网络科技有限公司 Application method and device of template website
CN103235819A (en) * 2013-04-27 2013-08-07 浪潮集团山东通用软件有限公司 WEB interface multi-zone data display method
US9483444B2 (en) * 2013-07-09 2016-11-01 Flipboard, Inc. Dynamic layout engine for a digital magazine
CN104375812A (en) * 2013-08-13 2015-02-25 腾讯科技(深圳)有限公司 Webpage content modifying template construction method and webpage content modifying method and system
CN105100161B (en) * 2014-05-19 2019-04-16 北京大学 Method for exhibiting data and terminal device
CN104317591B (en) * 2014-10-23 2017-11-28 西安未来国际信息股份有限公司 A kind of web interface frame system and web method for processing business based on OSGi
CN104598513B (en) * 2014-11-03 2018-05-01 腾讯科技(成都)有限公司 A kind of method of data flow control and system based on web page frame
CN104408155A (en) * 2014-12-04 2015-03-11 北京京东尚科信息技术有限公司 Method and device for generating webpage codes, and system
CN106325839B (en) * 2015-06-26 2020-01-07 阿里巴巴集团控股有限公司 Method and device for enhancing attribute information of webpage elements
CN106293688B (en) * 2015-06-26 2019-09-06 阿里巴巴集团控股有限公司 A kind of processing method of web-page requests, device and system
CN105094845A (en) * 2015-08-24 2015-11-25 用友网络科技股份有限公司 Process modeling device and method
CN105373523A (en) * 2015-10-14 2016-03-02 浪潮软件集团有限公司 Workflow solution method based on user-defined form and Activiti
CN106909361B (en) * 2015-12-23 2020-07-14 任子行网络技术股份有限公司 Web development method and device based on template engine
CN105893056A (en) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 Template and template logic combining method and system
CN106055342B (en) * 2016-06-13 2019-04-09 数普金通数据技术有限公司 The method of third party Form extension element is used under a kind of dojango
CN106528124B (en) * 2016-10-26 2019-06-14 广东广新信息产业股份有限公司 Page Template dissemination method and system
CN106873965A (en) * 2016-12-25 2017-06-20 北京通途永久科技有限公司 A kind of method suitable for the monitoring service class application dynamic construction page
CN106951233B (en) * 2017-03-02 2020-04-17 广州天高软件科技有限公司 Mixed-mode smart phone application development framework system
CN106990970B (en) * 2017-04-06 2020-10-23 苏州金唯智生物科技有限公司 MVC-based dynamic page generation method and system
CN108153551B (en) * 2017-12-11 2021-07-23 中国民生银行股份有限公司 Method and device for displaying business process page
CN108664235B (en) * 2018-03-14 2021-07-20 中煤科工集团重庆研究院有限公司 Coal mine information system fusion construction method based on component warehouse
CN108681454A (en) * 2018-05-23 2018-10-19 成都淞幸科技有限责任公司 A kind of webpage visualization component development method
CN110554857B (en) * 2018-05-30 2021-06-22 马上消费金融股份有限公司 JavaBean generation method, device and system and readable storage medium
CN109325203A (en) * 2018-09-10 2019-02-12 北京亚鸿世纪科技发展有限公司 The device of Web system visualization multiplexing is realized in a kind of automation
CN109766097A (en) * 2018-12-15 2019-05-17 中国平安人寿保险股份有限公司 UI generation method, device, electronic equipment and computer readable storage medium
CN109840083B (en) * 2018-12-27 2023-05-12 杭州亚信云信息科技有限公司 Webpage component template construction method and device, computer equipment and storage medium
CN109918118B (en) * 2019-03-25 2022-08-09 北京城市网邻信息技术有限公司 Service line registration method and related equipment
CN110321503B (en) * 2019-06-13 2021-06-29 北京奇艺世纪科技有限公司 Web component caching method and device and electronic equipment
CN110989976A (en) * 2019-11-29 2020-04-10 北京美络克思科技有限公司 Web application componentization development method based on J2EE, storage medium and electronic device
CN112559222A (en) * 2020-12-23 2021-03-26 百果园技术(新加坡)有限公司 Message display method and device, computer equipment and storage medium
CN114296789B (en) * 2022-03-09 2022-07-22 太平金融科技服务(上海)有限公司深圳分公司 Business processing method, device, equipment and storage medium based on full-process configuration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Struts Tiles基于组件的开发. 吴四夫,邓红梅.信息技术,第28卷第12期. 2004 *

Also Published As

Publication number Publication date
CN101158896A (en) 2008-04-09

Similar Documents

Publication Publication Date Title
CN100520717C (en) Service assemblage based on MVC and method for page moulding development WEB platform
US7673282B2 (en) Enterprise information unification
US9009658B2 (en) Component based software system
US7421699B2 (en) Service meta model for an enterprise service architecture
US20060112123A1 (en) Spreadsheet user-interfaced business data visualization and publishing system
US20030074648A1 (en) System and method for managing architectural layers within a software model
CN103383645A (en) Code generation method and system
US20090006987A1 (en) Visual design tools for portal content creation
Bernaschina et al. A big data analysis framework for model-based web user behavior analytics
Suzuki et al. Managing the software design documents with XML
Gaedke et al. WCML: Paving the way for reuse in object-oriented web engineering
Suzuki et al. Making UML models exchangeable over the Internet with XML: UXF approach
El-Gayar et al. An XML-based schema definition for model sharing and reuse in a distributed environment
Sneed et al. Linking legacy services to the business process model
Brambilla et al. Model-driven design of service-enabled web applications
Ellmer et al. Consistency management of distributed documents using XML and related technologies
Souza et al. Designing Web Information Systems for a Framework-based Construction
Souza et al. A UML Profile for Modeling Framework-based Web Information Systems.
Fernando et al. Development of the Comprehensive System of the High Specialty Regional Hospital “Dr. Gustavo A. Rovirosa Pérez”: Medical emergency module with Yii2 Framework and the MVC design pattern
Vepsäläinen et al. Design pattern support for model-driven development
Baumgartner Domain-Driven Design Refactoring Tool
Souza et al. S-FrameWeb–a Frameworkbased Design Method for Web Engineering with Semantic Web Support
Laukaitis et al. Jmining—Information Delivery WEB Portal Architecture and Open Source Implementation
Dhali Web application development with. NET: 3-tier architecture
Cranefield et al. Automating the interoperation of information processing tools

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: LIAN Technology (Nanjing) Co., Ltd.

Assignor: Linkage System Integration Co., Ltd.

Contract fulfillment period: 2009.6.23 to 2027.8.30 contract change

Contract record no.: 2009320001548

Denomination of invention: Service assemblage based on MVC and method for page moulding development WEB platform

Granted publication date: 20090729

License type: exclusive license

Record date: 2009.8.17

LIC Patent licence contract for exploitation submitted for record

Free format text: EXCLUSIVE LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2009.6.23 TO 2027.8.30; CHANGE OF CONTRACT

Name of requester: LIANCHUANG SCIENCE ( NANJING ) CO., LTD.

Effective date: 20090817

ASS Succession or assignment of patent right

Owner name: LIANCHUANG SCIENCE ( NANJING ) CO., LTD.

Free format text: FORMER OWNER: NANJING LIANCHUANG SCIENCE CO., LTD.

Effective date: 20091218

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20091218

Address after: 16 floor, No. 12 Huai gate, Nanjing, Jiangsu

Patentee after: Linkage System Integration Co., Ltd.

Address before: 16 floor, No. 12 Huai gate, Nanjing, Jiangsu

Patentee before: Linkage System Integration Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: LINKAGE ASIAINFO TECHNOLOGY (NANJING) CO., LTD.

Free format text: FORMER NAME: LINKAGE TECHNOLOGY (NANJING) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee after: LINKAGE-ASIAINFO TECHNOLOGIES (NANJING), INC.

Address before: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee before: Linkage System Integration Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: ASIALNFO TECHNOLOGY (NANJING) CO., LTD.

Free format text: FORMER NAME: LINKAGE-ASIAINFO TECHNOLOGY (NANJING) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee after: Asialnfo Technology (Nanjing) Co., Ltd.

Address before: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee before: LINKAGE-ASIAINFO TECHNOLOGIES (NANJING), INC.