CN105549978A - Configuration method for solving pull-down list parameters of web foreground page - Google Patents
Configuration method for solving pull-down list parameters of web foreground page Download PDFInfo
- Publication number
- CN105549978A CN105549978A CN201510948275.2A CN201510948275A CN105549978A CN 105549978 A CN105549978 A CN 105549978A CN 201510948275 A CN201510948275 A CN 201510948275A CN 105549978 A CN105549978 A CN 105549978A
- Authority
- CN
- China
- Prior art keywords
- parameter
- tag
- foreground
- data
- page
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000008569 process Effects 0.000 claims description 15
- 235000006719 Cassia obtusifolia Nutrition 0.000 claims description 8
- 235000014552 Cassia tora Nutrition 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 6
- 244000201986 Cassia tora Species 0.000 claims description 5
- 244000277285 Cassia obtusifolia Species 0.000 claims description 3
- 230000037396 body weight Effects 0.000 claims description 3
- 238000002592 echocardiography Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 5
- 230000008901 benefit Effects 0.000 abstract description 3
- 238000004806 packaging method and process Methods 0.000 abstract 1
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a configuration method for solving the problem of web foreground page drop-down list parameters, which comprises the following implementation steps: configuring a jsp label library used in the system, wherein the label library is used for analyzing object data transmitted from a system background to a foreground; the background transmits values to the foreground, and the data is packaged into a data format which can be analyzed by a foreground label library so as to achieve the aim of responding by the foreground and the background; and writing the service logic of the query parameter in the data access layer corresponding to the service function, and packaging the service logic to realize the aim of code reuse. Compared with the prior art, the configuration method for solving the parameters of the pull-down list of the web foreground page has the advantages that a new person can learn and use the configuration method quickly, the parameter configuration is more flexible, the development efficiency is high, the development mode is more convenient, quicker, safer and more effective, the practicability is strong, the application range is wide, and the popularization is easy.
Description
Technical field
The present invention relates to field of computer technology, specifically a kind of practical, collocation method of solving web front page layout drop-down list parameter.
Background technology
In the process of development system, some function pages need the parameter of adding one or several drop-down list to carry out the support of finishing service data.If these parameters are directly write dead on the page, system cloud gray model is safeguarded in the future, when reason due to business needs to add parameter, maintainer is needed to find system server, then corresponding system is found, finding the corresponding page, the extremely low and operability of this maintenance mode efficiency is also special trouble.Want to address this problem, a dictionary table can be created in a database, parameter is stored in dictionary table according to classification, when needs class parameter, by parameter type, parameter can be taken out.When the parameter of a certain class or several class needs interpolation, amendment and deletes parameter in the future, by the mode of Update Table database data, the object of amendment page parameter can be reached.
Data in label in systems in which in Dynamic Display drop-down list are by configuring sql statement in xml file, then when a certain class parameter of needs, program resolves this xml file, find corresponding sql statement, then by this sql statement accessing database, required this kind of parameter is finally obtained.This operating process, the filtercondition that cannot realize by importing sql statement into reaches the target of screening parameter.
Based on this, now provide a kind of collocation method solving web front page layout drop-down list parameter.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of practical, collocation method of solving web front page layout drop-down list parameter.
Solve a collocation method for web front page layout drop-down list parameter, implementation step is:
One, configure the jsp tag library used in system, this tag library is used for the object data that resolution system backstage biography is worth foreground;
Two, backstage is to foreground biography value, encapsulates data into the data layout that foreground tag library can be resolved, to reach the target that AM/BAM echoes;
Three, inside the data access layer service logic of query argument being write on corresponding business function, and he is encapsulated, the target that code is reused.
Label in described tag library is made up of the element of six below:
Javabean, independently code container, place reusable code, for tag library is used for performing the foundation code block of institute allocating task;
Tag processor, quote the javabean external resource required for it and the information of the responsible access jsp page, the jsp page then the delivery of content of the tag attributes that the page is arranged and label body weight to tag processor, after tag processor completes its process, it will can be given the jsp page the result after process and do further process;
Tag library descriptor, records the attribute of tag processor, information and positional information;
The initialization files of web site, in this document, the customized label used in definition web site, and the tag library descriptor being used for describing each customized label;
File publishing, is packaged as a jar file by tag library, realize being moved in sundry item by a project going;
Tag library statement on the jsp page, when certain self-defining label of the use in the jsp page, uses tag library indications to state on the page.
The described data layout that can resolve refers to set set and map key-value pair.
In described step 3, realize data access by code call, its access is carried out based on key-course, service layer, data access layer, database, is specially:
Key-course sends request and response request, and to the request of service layer's transmit band parameter and obtaining request response and turn back to the jsp page;
The process of service layer's finishing service logic, passes to data access layer by the required parameter of key-course and the result that obtained is carried out processing according to the business need of system and encapsulates, and finally result is returned to key-course;
Data access layer is by parameter access database, and the parameter query database passed over by service layer, turns back to service layer by Query Result;
Storage data are completed finally by database.
A kind of collocation method solving web front page layout drop-down list parameter of the present invention, has the following advantages:
A kind of collocation method solving web front page layout drop-down list parameter of this invention, it is upper quick-moving that new person learns use, and parameter configuration is more flexible, development efficiency is high, and development scheme is convenient, quick, safe, effective, practical, applied widely, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Accompanying drawing 2 is that the present invention realizes the access schematic diagram of data by code call.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
In the performance history of system, sometimes need to import one or more parameter into, obtain the Query Result of database, then this result biography is worth front page layout, as the parameter in drop-down list.Of the present inventionly provide a kind of collocation method solving web front page layout drop-down list parameter, as shown in Figure 1, implementation step is:
One, configure the jsp tag library used in operating system, this tag library is used for the object data that resolution system backstage biography is worth foreground;
Two, backstage is to foreground biography value, encapsulates data into the data layout that foreground tag library can be resolved, to reach the target that AM/BAM echoes;
Three, inside the data access layer service logic of query argument being write on corresponding business function, and encapsulate him, the target that code is reused, in this step, query argument uses an a certain class value of string representation exactly.As: student represents student.Teacher represents teacher.All students can be inquired by parameter s tudent parameter, all teachers can be inquired by teacher parameter.By that analogy.Service logic is exactly the functional requirement according to system, needs oneself to do corresponding process to the data of inquiry.To meet the functional requirement of system.
Label in described tag library is made up of the element of six below:
Javabean: in order to obtain the inherent OO benefit of java, reusable code is put into one independently in code container, namely javabean.These javabean are foundation code blocks that tag library is used for performing institute's allocating task.
Tag processor: tag processor is the true kernel of tag library.A tag processor taghandler quotes any external resource javabean required for it and is responsible for the information of the access jsp page, i.e. pageContext object.The jsp page then all passes to tag processor the content of the tag attributes that the page is arranged and label body weight, and after tag processor completes its process, it will can be given the jsp page the result after process and do further process.
Tag library descriptor TLD file: this is a simple XML file, its information such as record and the attribute of tag processor, information and position.Jsp container is learnt wherefrom by this file and how to be called a tag library.
The web.xml file of web site: this is the initialization files of web site, in this document, needs to define the customized label used in web site, and is used for describing the tld file of each customized label.
File publishing war or jar file: tag library being packaged as a jar file is a simple and effective a kind of mode realizing reusing customized label, and it can realize being moved in sundry item by a project going.
Tag library statement on the jsp page, when certain self-defining label of the use in the jsp page, uses tag library indications to state on the page.
The described data layout that can resolve refers to set set and map key-value pair.
As shown in Figure 2, in described step 3, realize data access by code call, its access is carried out based on key-course, service layer, data access layer, database, is specially:
Key-course sends request and response request, and to the request of service layer's transmit band parameter and obtaining request response and turn back to the jsp page;
The process of service layer's finishing service logic, passes to data access layer by the required parameter of key-course and the result that obtained is carried out processing according to the business need of system and encapsulates, and finally result is returned to key-course;
Data access layer is by parameter access database, and the parameter query database passed over by service layer, turns back to service layer by Query Result;
Storage data are completed finally by database.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of the collocation method of any a kind of web of solution front page layout drop-down list parameter according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (4)
1. solve a collocation method for web front page layout drop-down list parameter, it is characterized in that, implementation step is:
One, configure the jsp tag library used in system, this tag library is used for the object data that resolution system backstage biography is worth foreground;
Two, backstage is to foreground biography value, encapsulates data into the data layout that foreground tag library can be resolved, to reach the target that AM/BAM echoes;
Three, inside the data access layer service logic of query argument being write on corresponding business function, and he is encapsulated, the target that code is reused.
2. a kind of collocation method solving web front page layout drop-down list parameter according to claim 1, it is characterized in that, the label in described tag library is made up of the element of six below:
Javabean, independently code container, place reusable code, for tag library is used for performing the foundation code block of institute allocating task;
Tag processor, quote the javabean external resource required for it and the information of the responsible access jsp page, the jsp page then the delivery of content of the tag attributes that the page is arranged and label body weight to tag processor, after tag processor completes its process, it will can be given the jsp page the result after process and do further process;
Tag library descriptor, records the attribute of tag processor, information and positional information;
The initialization files of web site, in this document, the customized label used in definition web site, and the tag library descriptor being used for describing each customized label;
File publishing, is packaged as a jar file by tag library, realize being moved in sundry item by a project going;
Tag library statement on the jsp page, when certain self-defining label of the use in the jsp page, uses tag library indications to state on the page.
3. a kind of collocation method solving web front page layout drop-down list parameter according to claim 1, is characterized in that, the described data layout that can resolve refers to set set and map key-value pair.
4. a kind of collocation method solving web front page layout drop-down list parameter according to claim 1, it is characterized in that, in described step 3, realize data access by code call, its access is carried out based on key-course, service layer, data access layer, database, is specially:
Key-course sends request and response request, and to the request of service layer's transmit band parameter and obtaining request response and turn back to the jsp page;
The process of service layer's finishing service logic, passes to data access layer by the required parameter of key-course and the result that obtained is carried out processing according to the business need of system and encapsulates, and finally result is returned to key-course;
Data access layer is by parameter access database, and the parameter query database passed over by service layer, turns back to service layer by Query Result;
Storage data are completed finally by database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510948275.2A CN105549978A (en) | 2015-12-17 | 2015-12-17 | Configuration method for solving pull-down list parameters of web foreground page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510948275.2A CN105549978A (en) | 2015-12-17 | 2015-12-17 | Configuration method for solving pull-down list parameters of web foreground page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105549978A true CN105549978A (en) | 2016-05-04 |
Family
ID=55829176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510948275.2A Pending CN105549978A (en) | 2015-12-17 | 2015-12-17 | Configuration method for solving pull-down list parameters of web foreground page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105549978A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108039963A (en) * | 2017-12-05 | 2018-05-15 | 腾讯科技(深圳)有限公司 | A kind of container collocation method, device and storage medium |
CN108073630A (en) * | 2016-11-16 | 2018-05-25 | 北京京东尚科信息技术有限公司 | A kind of service search access management method and system based on mobilism configuration |
CN108182236A (en) * | 2017-12-27 | 2018-06-19 | 国云科技股份有限公司 | A kind of web page drop-down list implementation method of unified disposition data source |
CN108182106A (en) * | 2017-12-26 | 2018-06-19 | 湖南全软软件技术有限公司 | The method and apparatus that WEB front and back end data interactions are realized by semantization label |
CN109460230A (en) * | 2018-11-09 | 2019-03-12 | 苏宁消费金融有限公司 | The method and system of biography value and service logic multiplexing between a kind of page |
CN112860310A (en) * | 2021-01-29 | 2021-05-28 | 银盛通信有限公司 | Tag-based data type identifier configuration method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306163A (en) * | 2011-08-01 | 2012-01-04 | 烟台杰瑞网络商贸有限公司 | Dynamic integration technology based on B2B (business to business) platform |
CN102495882A (en) * | 2011-12-07 | 2012-06-13 | 方正国际软件有限公司 | System and method for binding page object and database field in Java environment |
US8332780B2 (en) * | 2006-11-15 | 2012-12-11 | Sap Ag | Method and system for displaying drop down list boxes |
CN103092917A (en) * | 2012-12-20 | 2013-05-08 | 山东舜德数据管理软件工程有限公司 | Method of achieving query of business dictionary of browser page by custom tag |
CN103399935A (en) * | 2013-08-09 | 2013-11-20 | 神州数码(中国)有限公司 | Configured control selection achieving method |
-
2015
- 2015-12-17 CN CN201510948275.2A patent/CN105549978A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8332780B2 (en) * | 2006-11-15 | 2012-12-11 | Sap Ag | Method and system for displaying drop down list boxes |
CN102306163A (en) * | 2011-08-01 | 2012-01-04 | 烟台杰瑞网络商贸有限公司 | Dynamic integration technology based on B2B (business to business) platform |
CN102495882A (en) * | 2011-12-07 | 2012-06-13 | 方正国际软件有限公司 | System and method for binding page object and database field in Java environment |
CN103092917A (en) * | 2012-12-20 | 2013-05-08 | 山东舜德数据管理软件工程有限公司 | Method of achieving query of business dictionary of browser page by custom tag |
CN103399935A (en) * | 2013-08-09 | 2013-11-20 | 神州数码(中国)有限公司 | Configured control selection achieving method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108073630A (en) * | 2016-11-16 | 2018-05-25 | 北京京东尚科信息技术有限公司 | A kind of service search access management method and system based on mobilism configuration |
CN108073630B (en) * | 2016-11-16 | 2020-09-01 | 北京京东尚科信息技术有限公司 | Service search access management method and system based on dynamic configuration |
CN108039963A (en) * | 2017-12-05 | 2018-05-15 | 腾讯科技(深圳)有限公司 | A kind of container collocation method, device and storage medium |
CN108039963B (en) * | 2017-12-05 | 2021-03-23 | 腾讯科技(深圳)有限公司 | Container configuration method and device and storage medium |
CN108182106A (en) * | 2017-12-26 | 2018-06-19 | 湖南全软软件技术有限公司 | The method and apparatus that WEB front and back end data interactions are realized by semantization label |
CN108182236A (en) * | 2017-12-27 | 2018-06-19 | 国云科技股份有限公司 | A kind of web page drop-down list implementation method of unified disposition data source |
CN109460230A (en) * | 2018-11-09 | 2019-03-12 | 苏宁消费金融有限公司 | The method and system of biography value and service logic multiplexing between a kind of page |
CN109460230B (en) * | 2018-11-09 | 2021-11-09 | 苏宁消费金融有限公司 | Method and system for multiplexing transmission value and service logic between pages |
CN112860310A (en) * | 2021-01-29 | 2021-05-28 | 银盛通信有限公司 | Tag-based data type identifier configuration method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105549978A (en) | Configuration method for solving pull-down list parameters of web foreground page | |
CN116737775A (en) | Data serialization in a distributed event processing system | |
CN107239479A (en) | A kind of method and device of data storage and inquiry based on block chain | |
WO2014145084A1 (en) | Methods for managing applications using semantic modeling and tagging and devices thereof | |
CN103136201A (en) | Page information display method and page information display device | |
US9846714B2 (en) | Database device | |
Smith et al. | " Big Metadata" The Need for Principled Metadata Management in Big Data Ecosystems | |
US11909721B2 (en) | Systems and methods for automated firewall provisioning for virtual machines | |
CN103455335A (en) | Multilevel classification Web implementation method | |
CN103034496B (en) | Based on the Locally-static portal generation method of template | |
Byun et al. | Oliot epcis: Engineering a web information system complying with epc information services standard towards the internet of things | |
CN113887821A (en) | Method and device for risk prediction | |
Touati et al. | Development of prototype for IoT and IoE scalable infrastructures, architectures and platforms | |
Luckow et al. | Data infrastructure for intelligent transportation systems | |
CN108196831B (en) | Construction method and device of business system | |
CN103488794A (en) | Method for Web realization of operation of databases with any properties | |
US11645549B2 (en) | System for deriving data in constrained environments | |
US11449677B2 (en) | Cognitive hierarchical content distribution | |
CN106407345B (en) | Dirty data updating method and device | |
CN104978379A (en) | Method and device for building application program information station | |
CN103399746A (en) | Information management system convenient to develop secondarily and development method | |
US11556398B2 (en) | Centralized data management | |
CN114218278A (en) | Data table field query method and system of http interface | |
US9323817B2 (en) | Distributed storage system with pluggable query processing | |
JP6123344B2 (en) | Screen program generating device, screen program generating method thereof, information processing device, and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160504 |