CN102479073B - User application interface generating method - Google Patents

User application interface generating method Download PDF

Info

Publication number
CN102479073B
CN102479073B CN201010555686.2A CN201010555686A CN102479073B CN 102479073 B CN102479073 B CN 102479073B CN 201010555686 A CN201010555686 A CN 201010555686A CN 102479073 B CN102479073 B CN 102479073B
Authority
CN
China
Prior art keywords
displaying
module
template
style
service
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.)
Expired - Fee Related
Application number
CN201010555686.2A
Other languages
Chinese (zh)
Other versions
CN102479073A (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.)
Aspire Digital Technologies Shenzhen Co Ltd
Original Assignee
Aspire Digital Technologies Shenzhen 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 Aspire Digital Technologies Shenzhen Co Ltd filed Critical Aspire Digital Technologies Shenzhen Co Ltd
Priority to CN201010555686.2A priority Critical patent/CN102479073B/en
Publication of CN102479073A publication Critical patent/CN102479073A/en
Application granted granted Critical
Publication of CN102479073B publication Critical patent/CN102479073B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a user application interface generating method which comprises the steps of: in a service end, processing a corresponding service logic and returning a processing result of the service logic to a content showing module by a service processing module; obtaining a corresponding showing template from a cascading style file by the content showing module, wherein a plurality of showing templates are stored in the cascading style file; and combining the obtained showing template and the processing result of the returned service logic into an HTML (Hypertext Markup Language) text by the content showing module, and returning the HTML text to a client end. By implementing the technical scheme of the invention, because the corresponding showing template is selected from the plurality of showing templates, the user application interface generating method can be applicable to terminals of 1 ACTION->n VIEW, such as a mobile phone, for showing different effects.

Description

A kind of generation method of user application interface
Technical field
The present invention relates to software development technique, more particularly, relate to a kind of generation method of user application interface.
Background technology
Software development technique has developed decades, and along with software application is more and more extensive, function becomes increasingly complex, and scale is more and more huger.Current Development Framework, is all 1ACTION → 1VIEW, that is, and and business scenario and the relation of displaying template in 1 pair 1.For mobile phone terminal door, 1ACTION → n VIEW often, the i.e. corresponding multiple displaying templates of business scenario.Therefore,, under the driving of this kind of demand, need a kind of generation method of new user application interface.
Summary of the invention
The technical problem to be solved in the present invention is, can only be applicable to the only defect of a corresponding displaying template of a business scenario for the above-mentioned user application interface generation method of prior art, a kind of user application interface generation method that is applicable to the corresponding multiple displaying templates of a business scenario is provided.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of generation method of user application interface, carry out following steps in service end:
A. content displaying module receives the service request that client sends, and processes the session between client and service end according to received service request;
B. session management module receives and preserves session after treatment;
C. content displaying module is obtained the URL of corresponding service processing according to received service request;
D. Service Processing Module calls the URL of described corresponding service processing;
E. Service Processing Module is processed corresponding service logic, and returns to the result of service logic to content display module;
F. content displaying module is obtained corresponding displaying template from stacked pattern file, and described stacked pattern file stores multiple displaying templates;
G. obtained displaying template and the result of the service logic of returning are combined into html text by content displaying module, and described html text is returned to client.
In the generation method of user application interface of the present invention, in step F, content displaying module is obtained corresponding displaying template according to user's needs or user's mobile phone model.
In the generation method of user application interface of the present invention, described step F comprises:
F1. content displaying module is determined the style of showing template;
F2. content displaying module is determined the pattern of showing template;
F3. content displaying module, according to determined style and pattern, is obtained the displaying template of corresponding style and corresponding pattern from stacked pattern file, and described stacked pattern file stores the displaying template of multiple different-styles and different patterns;
Described step G is:
The displaying template of obtained corresponding style and corresponding pattern and the result of the service logic of returning are combined into html text by content displaying module, and described html text is returned to client.
In the generation method of user application interface of the present invention, in stacked pattern file, each shows that template generates and stores by the following method in advance:
Determine the style of showing template;
Specific label in definite displaying template and the mapping relations of special style;
Analyze the grammer of displaying template of the definite style of institute, the described specific label in will displaying template replaces with described special style;
Displaying template after storage is replaced.
In the generation method of user application interface of the present invention, described pattern comprises resolution, color, the size of picture.
In the generation method of user application interface of the present invention, between described step D and step e, also comprise:
H. Service Processing Module has judged whether session, if so, performs step I; If not, perform step K;
I. Service Processing Module is to the session of session management module acquisition request;
J. session management module returns to session to Service Processing Module, then performs step E;
K. Service Processing Module returns to session to content display module and does not exist;
L. content displaying module is returned to session to client and is not existed, and finishes.
In the generation method of user application interface of the present invention, in step e, the result of the service logic of returning is binary stream.
Implement technical scheme of the present invention, there is following beneficial effect:
First, owing to can select to show accordingly template from multiple displaying templates, therefore this user application interface generation method is applicable to the terminal of 1ACTION → n VIEW, and for example mobile phone terminal, to show different effects;
Secondly, can determine the corresponding template of showing according to user's mobile phone model or user's needs, realize the demand that CDN strange land is disposed;
Moreover, for the displaying template of same style, can also carry out automatic fine tuning according to determined pattern, reduce greatly workload.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is that user application interface generation method of the present invention is implemented one process flow diagram;
Fig. 2 is that user application interface generation method of the present invention is implemented two process flow diagram;
Fig. 3 is the logic relation picture that the stacked pattern file of the present invention configures.
Embodiment
As shown in Figure 1, in the process flow diagram of user application interface generation method enforcement one of the present invention, the method for carrying out following steps in service end:
S01. the service request that client sends to content display module, in this step, client can be IE or mobile phone browser;
S02. content displaying module is processed the session between client and service end according to received service request;
S03. content displaying module is to the session after session management module transmission processing;
S04. session management module is preserved session after treatment, and returns to content display module the information of preservation;
S05. content displaying module is obtained the URL of corresponding service processing according to received service request;
S06. Service Processing Module calls the URL of described corresponding service processing;
S09. Service Processing Module is processed corresponding service logic;
S10. Service Processing Module returns to the result of service logic to content display module, and preferably, the result of this service logic is binary stream;
S11. content displaying module is obtained corresponding displaying template from stacked pattern file, and described stacked pattern file stores multiple displaying templates, in this step, preferably, can obtain corresponding displaying template according to user's needs or user's mobile phone model;
S12. obtained displaying template and the result of the service logic of returning are combined into html text by content displaying module;
S13. described html text is returned to client by content displaying module.
Fig. 2 is that user application interface generation method of the present invention is implemented two process flow diagram, the user application interface generation method of this embodiment is compared embodiment mono-, step S01 is identical to step S06 and step S09 to step S13, do not repeat at this, different parts is below only described, between step S06 and step S09, also comprises:
If S07. Service Processing Module judgement has session, to the session of session management module acquisition request;
S08. session management module returns to session to Service Processing Module, then performs step S09.
In addition, if Service Processing Module judgement does not have session, Service Processing Module returns to session to content display module and does not exist; Then, content displaying module is returned to session to client and is not existed, and finishes.
Implement the technical scheme of this embodiment, also can, before Service Processing Module is processed service logic, again carry out verification to session information, only, in the time of verification succeeds, just proceed business logic processing; If verification is unsuccessful, stops business processing logic, thereby stop this service request.
In a preferred embodiment, step S11 can comprise:
Content displaying module is determined the style of showing template;
Content displaying module is determined the pattern of showing template;
Content displaying module, according to determined style and pattern, is obtained the displaying template of corresponding style and corresponding pattern from stacked pattern file, and described stacked pattern file stores the displaying template of multiple different-styles and different patterns;
Described step S12 is:
The displaying template of obtained corresponding style and corresponding pattern and the result of the service logic of returning are combined into html text by content displaying module, and described html text is returned to client.
Should be noted that, in three steps that S11 comprises in the above, the style that can determine voluntarily according to user's mobile phone model or user and pattern are determined and are shown template, the style that user's mobile phone model or user determine voluntarily and pattern can be embodied in service request, dispose to realize CDN strange land.Certainly, the present invention does not limit to above two kinds of implementations, and also service end is determined voluntarily or determined by Else Rule.
In this embodiment, the logic relation picture that stacked pattern file as shown in Figure 3 configures, this stacked pattern file is pre-stored in content displaying module, an ingress for service can produce multiple business logic processing results (the Forward concept in similar Struts) A, B, C, D, for example, if ingress for service is for entering a certain forum homepage, be that user now will access this forum's homepage, business logic processing result A can be a list that shows forum's homepage, and business logic processing result B can be and shows login sessions frame etc.Each business logic processing result has multiple displaying styles, for example, the style of the displaying template of business logic processing result A has OMS (Open Mobile System) style, S60 (Series 60) style, and the style of the displaying template of business logic processing result B has OMS style, S60 style.Under the displaying template of each style, also have multiple patterns for different resolution, for example, the resolution of the pattern of the displaying template of OMS style has 360*640,320*480,240*320; The resolution of the pattern of the displaying template of S60 style has 360*640,320*480.
Illustrate with an example how the displaying template in stacked pattern file generates and stores in advance, is OMS style for style below, the displaying template of the pattern that resolution is 240*320, when in the displaying template of this OMS style, occurs:
adbody{background:url(/dps/image/240x320/mybaihe/playlibrary/body_bg.png);color:#047ebd;},
In the displaying template of this OMS style, in all labels, there is class=so " adbody " part, background picture all can replace to:
/dps/image/240x320/mybaihe/playlibrary/body_bg.png。
Similarly, be S60 style for style, the displaying template of the pattern that resolution is 240*320, when occurring in the displaying template of this S60 style:
adbody{background:url(/dps/image/240x320/mybaihe/playlibrary/body_bg.png);color:#047ebd;},
In the displaying template of this S60 style, in all labels, there is class=so " adbody " part, background picture all can replace to:
/dps/image/240x320/mybaihe/playlibrary/body_bg.png。
The generation of other displaying template in stacked pattern file can be drawn analogous conclusions, that is to say, in the embodiment shown in fig. 3, for a result, in fact to there being 5 to show template, be respectively: the displaying template that OMS style and resolution are 360*640, OMS style and resolution are the displaying template OMS style of 320*480 and the displaying template that resolution is 240*320, S60 style and resolution are the displaying template of 320*480, S60 style and resolution are the displaying template of 240*3200, show that template is stored in stacked pattern file for 5 that generate, so that content displaying module is selected and is called.Fig. 1 and embodiment illustrated in fig. 2 in step S11 be exactly the displaying template of selecting a corresponding style and corresponding pattern from these stored five templates.
It should be noted that the pattern of showing template, not merely comprise resolution and the color of picture, also can be the size of picture, such as in CSS (cascading style sheet) file, occur:
faimg{height:34px;width:34px;},
In so corresponding html template, <img src=" ... " place of class=faimg/>, final displaying template output is: <img src=" ... " height:34px; Width:34px; / >.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in claim scope of the present invention.

Claims (6)

1. a generation method for user application interface, is characterized in that, carries out following steps in service end:
A. content displaying module receives the service request that client sends, and processes the session between client and service end according to received service request;
B. session management module receives and preserves session after treatment;
C. content displaying module is obtained the URL of corresponding service processing according to received service request;
D. Service Processing Module calls the URL of described corresponding service processing;
E. Service Processing Module is processed corresponding service logic, and returns to the result of service logic to content display module;
F. content displaying module is obtained corresponding displaying template from stacked pattern file, and described stacked pattern file stores multiple displaying templates;
G. obtained displaying template and the result of the service logic of returning are combined into html text by content displaying module, and described html text is returned to client;
Wherein, described step F comprises:
F1. content displaying module is determined the style of showing template;
F2. content displaying module is determined the pattern of showing template;
F3. content displaying module, according to determined style and pattern, is obtained the displaying template of corresponding style and corresponding pattern from stacked pattern file, and described stacked pattern file stores the displaying template of multiple different-styles and different patterns;
Described step G is:
The displaying template of obtained corresponding style and corresponding pattern and the result of the service logic of returning are combined into html text by content displaying module, and described html text is returned to client.
2. the generation method of user application interface according to claim 1, is characterized in that, in step F, content displaying module is obtained corresponding displaying template according to user's needs or user's mobile phone model.
3. the generation method of user application interface according to claim 1, is characterized in that, in stacked pattern file, each shows that template generates and stores by the following method in advance:
Determine the style of showing template;
Specific label in definite displaying template and the mapping relations of special style;
Analyze the grammer of displaying template of the definite style of institute, the described specific label in will displaying template replaces with described special style;
Displaying template after storage is replaced.
4. according to the generation method of the user application interface described in claim 1 or 3, it is characterized in that, described pattern comprises resolution, color, the size of picture.
5. the generation method of user application interface according to claim 1, is characterized in that, between described step D and step e, also comprises:
H. Service Processing Module has judged whether session, if so, performs step I; If not, perform step K;
I. Service Processing Module is to the session of session management module acquisition request;
J. session management module returns to session to Service Processing Module, then performs step E;
K. Service Processing Module returns to session to content display module and does not exist;
L. content displaying module is returned to session to client and is not existed, and finishes.
6. the generation method of user application interface according to claim 1, is characterized in that, in step e, the result of the service logic of returning is binary stream.
CN201010555686.2A 2010-11-22 2010-11-22 User application interface generating method Expired - Fee Related CN102479073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010555686.2A CN102479073B (en) 2010-11-22 2010-11-22 User application interface generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010555686.2A CN102479073B (en) 2010-11-22 2010-11-22 User application interface generating method

Publications (2)

Publication Number Publication Date
CN102479073A CN102479073A (en) 2012-05-30
CN102479073B true CN102479073B (en) 2014-07-02

Family

ID=46091728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010555686.2A Expired - Fee Related CN102479073B (en) 2010-11-22 2010-11-22 User application interface generating method

Country Status (1)

Country Link
CN (1) CN102479073B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104881290A (en) * 2015-06-03 2015-09-02 上海斐讯数据通信技术有限公司 Router and user interface customization method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334728A (en) * 2008-07-28 2008-12-31 北京航空航天大学 Interface creating method and platform based on XML document description
CN101695157A (en) * 2009-09-29 2010-04-14 深圳市融创天下科技发展有限公司 Self-adapting method of display of mobile terminal screen in network application and system thereof
CN101751252A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Interface generating device and interface generating method for dynamically changing skins
CN101814021A (en) * 2009-02-24 2010-08-25 易保网络技术(上海)有限公司 Method and system for displaying user interface on remote equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7502997B2 (en) * 2002-11-27 2009-03-10 Accenture Global Services Gmbh Ensuring completeness when publishing to a content management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334728A (en) * 2008-07-28 2008-12-31 北京航空航天大学 Interface creating method and platform based on XML document description
CN101751252A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Interface generating device and interface generating method for dynamically changing skins
CN101814021A (en) * 2009-02-24 2010-08-25 易保网络技术(上海)有限公司 Method and system for displaying user interface on remote equipment
CN101695157A (en) * 2009-09-29 2010-04-14 深圳市融创天下科技发展有限公司 Self-adapting method of display of mobile terminal screen in network application and system thereof

Also Published As

Publication number Publication date
CN102479073A (en) 2012-05-30

Similar Documents

Publication Publication Date Title
US20180101506A1 (en) User Interface
CN109308357A (en) It is a kind of for obtaining the method, apparatus and equipment of answer information
CN105404514B (en) JavaScript rendering method and device
US10007532B1 (en) Data infrastructure for cross-platform cross-device API inter-connectivity
CN103605688A (en) Intercept method and intercept device for homepage advertisements and browser
CN103678647A (en) Method and system for recommending information
CN111581083B (en) Interface testing method and device, electronic equipment and storage medium
US20170011012A1 (en) Automatic verification of graphic rendition of json data
CN106407361A (en) Method and device for pushing information based on artificial intelligence
CN110275831A (en) The mock data verification method and device of protocol interface
CN106020504A (en) Information output method and device
CN112417338B (en) Page adaptation method, system and equipment
CN108363734A (en) The page generates the method and device of picture
CN105094775A (en) Webpage generation method and apparatus
CN109145027A (en) Data statistical approach, device, equipment and computer readable storage medium
CN104793933B (en) A kind of terminal data shows method and system
CN110888672B (en) Expression engine implementation method and system based on metadata architecture
CN104008042A (en) UI (user interface) automated testing method, system and device
US20180063065A1 (en) Social media engagement engine
CN106598829A (en) Webpage automation test method and apparatus
CN102479073B (en) User application interface generating method
CN110020261A (en) Document converts sharing method, device, equipment and readable storage medium storing program for executing
Ann et al. Feast in: a machine learning image recognition model of recipe and lifestyle applications
CN105338104A (en) Business request responding method, analysis method and analysis system
CN104572095A (en) Self-adaptive method for building Ajax application for end user

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140702

Termination date: 20201122