CN103092917A - Method of achieving query of business dictionary of browser page by custom tag - Google Patents

Method of achieving query of business dictionary of browser page by custom tag Download PDF

Info

Publication number
CN103092917A
CN103092917A CN2012105596888A CN201210559688A CN103092917A CN 103092917 A CN103092917 A CN 103092917A CN 2012105596888 A CN2012105596888 A CN 2012105596888A CN 201210559688 A CN201210559688 A CN 201210559688A CN 103092917 A CN103092917 A CN 103092917A
Authority
CN
China
Prior art keywords
business dictionary
label
dictionary
business
query
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.)
Granted
Application number
CN2012105596888A
Other languages
Chinese (zh)
Other versions
CN103092917B (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.)
SHANDONG SUNDATA MANAGEMENT SOFTWARE ENGINEERING Co Ltd
Original Assignee
SHANDONG SUNDATA MANAGEMENT SOFTWARE ENGINEERING 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 SHANDONG SUNDATA MANAGEMENT SOFTWARE ENGINEERING Co Ltd filed Critical SHANDONG SUNDATA MANAGEMENT SOFTWARE ENGINEERING Co Ltd
Priority to CN201210559688.8A priority Critical patent/CN103092917B/en
Publication of CN103092917A publication Critical patent/CN103092917A/en
Application granted granted Critical
Publication of CN103092917B publication Critical patent/CN103092917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method of achieving query of a business dictionary of a browser page by a custom tag. The method is characterized by comprising the following steps: (1) building an object file of the custom tag; (2) building a configuration file of the business dictionary; (3) building a tag introduction file; and (4) compiling page codes. The method is geared to the needs of developers based on a webpage browser/server system structure, and a developing mode of the functions of the business dictionary query which is simple, rapid, independent, and extensible is achieved. Through a mode of writing the custom tag which is suitable for java standard specifications, logic of the business dictionary of a background query database is solidified, a simple foreground code can be enabled to independently achieve the function of the query of the business dictionary through various showing forms such as a radio box, a check box, a drop-down box, a single parameter value and multiple parameter values, and a custom sq1 statement is compiled through the configuration file of the business dictionary with an xm1 format so that extension of dictionary contents is achieved.

Description

A kind of customized label is realized the querying method of browser page business dictionary
Technical field
The present invention relates to business dictionary enquiring method, specifically, relate to the querying method that a kind of customized label is realized browser page business dictionary.
Background technology
According to view, controller, service logic three-decker Development Framework under at present general browser/server system, the element content on browser page all needs by controller layer, obtains from Business Logic.Like this for specific business information, system architecture is clear, the code loose coupling is good, be easy to safeguard, but for various dictionary category informations public in system, just need to write the code of access dictionary object method in a plurality of business logic objects, and quote the dictionary object attribute as the attribute of business logic objects, in system, will make the loose coupling variation of service logic and dictionary object, and can produce the code of a lot of repetitions like this.And for different dictionary structure, also need to call different dictionary object methods, introduce different dictionary object attributes, the logic more complicated.
Summary of the invention
The technical problem to be solved in the present invention is to provide the querying method that a kind of customized label is realized browser page business dictionary, simple and easy, quick, independent, the extendible inquiry that realizes browser page business dictionary.
The present invention adopts following technological means to realize goal of the invention:
A kind of customized label is realized the querying method of browser page business dictionary, it is characterized in that, comprises the steps:
(1) set up the customized label obj ect file, for each customized label is write independently Batch Processing processing logic, at first call the business dictionary object, according to the querying condition parameter of importing into, Query Database is then with the browser page code of the data based call format standard of assembling out of importing into of the Query Result that obtains;
(2) set up business dictionary configuration file, write self-defining sql statement by business dictionary configuration file, realize the expansion of business dictionary content;
(3) set up label supporting paper, be legal parameter name and attribute under every kind of customized label document definition bookmark name, description, corresponding background business logic and label;
(4) write page code, in the general jsp header file that each page can be quoted, increase is quoted label supporting paper, and defines the prefix when quoting label, makes in all pages and can both call label supporting paper according to unified standard.
As the further restriction to the technical program, described customized label comprises radio box, check box, combobox, single parameter value and multiple parameter values.
As the further restriction to the technical program, the querying condition parameter in described step (1) comprises the label query contents.
As the further restriction to the technical program, the call format that imports in described step (1) comprises page elements pattern, numbering, title, whether allows for sky, event handling mode.
As the further restriction to the technical program, the business dictionary configuration file that described business dictionary configuration file is the xml form.
Compared with prior art, advantage of the present invention and good effect are: the invention provides a kind of method that realizes browser page fast query business dictionary by customized label, be towards the developer based on web browser/server architecture, realize the development scheme of simple and easy, quick, independent, extendible business dictionary enquiring function.The method is by writing the mode of the customized label that meets the java standard criterion, solidify the logic of backstage Query Database business dictionary, make the easy foreground code just can be with multiple forms that represents such as radio box, check box, combobox, single parameter value, multiple parameter values, independently realize the function of business dictionary data inquiry, and write self-defined sql statement by the business dictionary configuration file of xml form, realize the expansion of dictionary content.
Description of drawings
Fig. 1 is the process flow diagram of the enforcement of the preferred embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, the present invention is done further to describe in detail.
The present invention includes following steps:
(1) set up the customized label obj ect file, for each customized label is write independently Batch Processing processing logic, at first call the business dictionary object, according to the querying condition parameter of importing into, Query Database is then with the browser page code of the data based call format standard of assembling out of importing into of the Query Result that obtains;
(2) set up business dictionary configuration file, write self-defining sql statement by configuration file, realize the expansion of business dictionary content;
(3) set up label supporting paper, be legal parameter name and attribute under every kind of customized label document definition bookmark name, description, corresponding background business logic and label;
(4) write page code, in the general jsp header file that each page can be quoted, increase is quoted label supporting paper, and defines the prefix when quoting label, makes in all pages and can both call label supporting paper according to unified standard.
Described customized label comprises the multiple forms that represent such as radio box, check box, combobox, single parameter value and multiple parameter values.
Querying condition parameter in described step (1) comprises the parameters such as label query contents and additional queries condition.
The call format that imports in described step (1) comprises page elements pattern, numbering, title, whether allows for sky, event handling mode.
Referring to Fig. 1, the present invention is by using the mode of customized label, and in the browser page code, appointment will be accessed which class value of which dictionary, and the display mode of dictionary value, application server when resolving page code, according to the requirement of browser page code, access tag supporting paper, and then call the customized label obj ect file, call the business dictionary object by it, then by business dictionary object calling data storehouse operand, realize obtaining of business dictionary data; And in the disposal route of dictionary object, having increased can be by writing data base manipulation statement in business dictionary configuration file, the mechanism that the dictionary content is expanded.In this way, the access to dictionary object that browser page is needed separates with background business logic, has well solved the problem of prior art.
Use the method, the concrete steps during enforcement are as follows
1. when using the method, the concrete steps under simple scenario are as follows:
For the content that will inquire about in business dictionary table (database table of storage service dictionary), and be the simple scenario by the inquiry of business dictionary code, only need to write the code that delegation quotes customized label in the page, in have: represent the business dictionary code of query contents, be used for obtaining name, the property parameter of page elements currency.For example only need to write "<dict:dictListname=" VarDefineForm " property=" code " sqlMap=" enterpriseScale "/〉 ", can reveal codes be just the combobox of the business dictionary content of " enterpriseScale ", and the Lookup protocol default value is the value of " code " attribute of " VarDefineForm " object, and after the other guide of having chosen combobox, the value of selecting is assigned to " code " attribute of " VarDefineForm " object.
2. when using the method, the concrete steps under complex situations are as follows:
1) for the content that will inquire about not in the business dictionary table, not perhaps the complex situations by the inquiry of business dictionary code, need to first edit business dictionary configuration file, increase key/value right, with the character string of the energy accurate description query contents content as key, with the content of a query sentence of database as value, the Query Result of statement must comprise the row of four fixing another names, is respectively: as the nounvalue of page elements value; NounName as the page elements displaying contents; NOUNORDER and nounId as the page elements sort criteria.After completing, with the content of the key query contents parameter as label, continue next step;
2) write the code that delegation quotes customized label in the page, have in must writing: the sqlMap parameter that represents query contents, be used for obtaining the name of page elements currency, the property parameter, have in can selecting as required whether to write: be used for the scope parameter that specified data is obtained scope, be used for transmitting the sqlStr parameter of additional queries condition, be used for transmitting the nounsuper parameter of additional queries parameter, be used to specify the isNull parameter that whether allows page elements there is no value, be used for arranging the style parameter of page elements pattern, be used for arranging the styleId parameter of page elements ID, and onClick, onDbClick, onChange, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, the standard Event processing mode parameter that a series of javascript of onMouseUp etc. support.According to the difference of page elements and displaying contents, the label that allows to quote is divided into following several: radio box; Check box; Combobox; Single parameter value; Multiple parameter values.
● following to show that in the page " scope of the enterprise " combobox as example, illustrates the embodiment of this method.
At first, introduce customized label in browser page, code is:
<%@taglib uri="/WEB-INF/dictDisp"prefix="dict"%>
Then, if scope of the enterprise in the business dictionary table, code is " enterpriseScale ", only needs to increase following code in browser page:
<dict:dictList name="VarDefineForm" property="code"sqlMap="enterpriseScale"/>
Can demonstrate the scope of the enterprise combobox in the page, the key assignments of combobox is the parameter value of all records under dictionary code " enterpriseScale ", display Name is corresponding parameter name, and the Lookup protocol default value is the value of " code " attribute of " VarDefineForm " object, and after the other guide of having chosen combobox, the value of selecting is assigned to " code " attribute of " VarDefineForm " object.Be exactly so simple.
For more complex situation, in independent table table1, also need to carry out expanded configuration to the scope of the enterprise parameter in the business dictionary configuration file of xml form as scope of the enterprise, increase code as follows in the map label:
<entry key="enterpriseScale"value="|select t.field1 asnounName,t.field2as nounvalue,t.field3as NOUNORDER,''as nounidfrom table1t"></entry>
Certainly, above-mentioned explanation is not limitation of the present invention, and the present invention also is not limited only to above-mentioned giving an example, and the variation that those skilled in the art make in essential scope of the present invention, remodeling, interpolation or replacement also belong to protection scope of the present invention.

Claims (5)

1. a customized label is realized the querying method of browser page business dictionary, it is characterized in that, comprises the steps:
(1) set up the customized label obj ect file, for every kind of customized label is write independently Batch Processing processing logic, at first call the business dictionary object, according to the querying condition parameter of importing into, Query Database is then with the browser page code of the data based call format standard of assembling out of importing into of the Query Result that obtains;
(2) set up business dictionary configuration file, write self-defining sql statement by business dictionary configuration file, realize the expansion of business dictionary content;
(3) set up label supporting paper, be legal parameter name and attribute under every kind of customized label document definition bookmark name, description, corresponding Batch Processing processing logic and label;
(4) write page code, in the general jsp header file that each page can be quoted, increase is quoted label supporting paper, and defines the prefix when quoting label, makes in all pages and can both call label supporting paper according to unified standard.
2. customized label is realized it is characterized in that the querying method of browser page business dictionary according to claim 1, and described customized label comprises radio box, check box, combobox, single parameter value and multiple parameter values.
3. customized label is realized it is characterized in that the querying method of browser page business dictionary according to claim 1, and the querying condition parameter in described step (1) comprises the label query contents.
4. customized label is realized the querying method of browser page business dictionary according to claim 1, it is characterized in that, the call format that imports in described step (1) comprises page elements pattern, numbering, title, whether allows for sky, event handling mode.
5. one of according to claim 1-4 described customized labels are realized the querying method of browser page business dictionary, it is characterized in that the business dictionary configuration file that described business dictionary configuration file is the xml form.
CN201210559688.8A 2012-12-20 2012-12-20 A kind of customized label realizes the querying method of browser page business dictionary Active CN103092917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210559688.8A CN103092917B (en) 2012-12-20 2012-12-20 A kind of customized label realizes the querying method of browser page business dictionary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210559688.8A CN103092917B (en) 2012-12-20 2012-12-20 A kind of customized label realizes the querying method of browser page business dictionary

Publications (2)

Publication Number Publication Date
CN103092917A true CN103092917A (en) 2013-05-08
CN103092917B CN103092917B (en) 2016-03-30

Family

ID=48205482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210559688.8A Active CN103092917B (en) 2012-12-20 2012-12-20 A kind of customized label realizes the querying method of browser page business dictionary

Country Status (1)

Country Link
CN (1) CN103092917B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549978A (en) * 2015-12-17 2016-05-04 浪潮软件集团有限公司 Configuration method for solving pull-down list parameters of web foreground page
CN107172029A (en) * 2017-05-09 2017-09-15 努比亚技术有限公司 Cross-site attack solution, mobile terminal and storage medium
CN108347638A (en) * 2018-02-27 2018-07-31 烽火通信科技股份有限公司 A kind of button processing method and system of IPTV set top box browser
CN109739909A (en) * 2019-01-07 2019-05-10 山东浪潮通软信息科技有限公司 A kind of methods of exhibiting and system fast implementing data visualization chart based on label
CN111258477A (en) * 2020-01-09 2020-06-09 江苏满运软件科技有限公司 Tab configuration method, system, device and storage medium
CN111475553A (en) * 2020-04-09 2020-07-31 五八有限公司 Data query display method and device, electronic equipment and storage medium
CN112035197A (en) * 2020-08-11 2020-12-04 深圳前海微众银行股份有限公司 Configuration method and device of front-end page
CN112287177A (en) * 2020-11-25 2021-01-29 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label
CN113360152A (en) * 2021-06-11 2021-09-07 软子数字软件(广州)有限公司 Method and system for realizing display program of parameterized data query webpage

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281047A1 (en) * 2006-11-15 2010-11-04 Sap Ag Method and system for displaying drop down list boxes
CN102096588A (en) * 2011-03-24 2011-06-15 南京朗睿软件科技有限公司 Control-containing page establishing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281047A1 (en) * 2006-11-15 2010-11-04 Sap Ag Method and system for displaying drop down list boxes
CN102096588A (en) * 2011-03-24 2011-06-15 南京朗睿软件科技有限公司 Control-containing page establishing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CUISUQIANG: "JSP自定义标签实现数据字典", 《HTTP://CUISUQIANG.ITEYE.COM/BLOG/1381591》, 30 January 2012 (2012-01-30), pages 1 - 11 *
王维平 等: "《SQL Server 2000数据库项目案例开发 理论篇》", 30 September 2009, article "5.2.3数据字典", pages: 90-91 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549978A (en) * 2015-12-17 2016-05-04 浪潮软件集团有限公司 Configuration method for solving pull-down list parameters of web foreground page
CN107172029A (en) * 2017-05-09 2017-09-15 努比亚技术有限公司 Cross-site attack solution, mobile terminal and storage medium
CN108347638B (en) * 2018-02-27 2020-10-27 烽火通信科技股份有限公司 Key processing method and system for IPTV set top box browser
CN108347638A (en) * 2018-02-27 2018-07-31 烽火通信科技股份有限公司 A kind of button processing method and system of IPTV set top box browser
CN109739909A (en) * 2019-01-07 2019-05-10 山东浪潮通软信息科技有限公司 A kind of methods of exhibiting and system fast implementing data visualization chart based on label
CN109739909B (en) * 2019-01-07 2023-03-31 浪潮通用软件有限公司 Method and system for rapidly realizing display of data visualization chart based on label
CN111258477A (en) * 2020-01-09 2020-06-09 江苏满运软件科技有限公司 Tab configuration method, system, device and storage medium
CN111475553A (en) * 2020-04-09 2020-07-31 五八有限公司 Data query display method and device, electronic equipment and storage medium
CN112035197A (en) * 2020-08-11 2020-12-04 深圳前海微众银行股份有限公司 Configuration method and device of front-end page
CN112035197B (en) * 2020-08-11 2021-07-13 深圳前海微众银行股份有限公司 Configuration method and device of front-end page
CN112287177A (en) * 2020-11-25 2021-01-29 城云科技(中国)有限公司 Method and device for creating, changing, displaying and inquiring object label
CN113360152A (en) * 2021-06-11 2021-09-07 软子数字软件(广州)有限公司 Method and system for realizing display program of parameterized data query webpage
CN113360152B (en) * 2021-06-11 2023-11-03 软子数字软件(广州)有限公司 Method and system for realizing parameterized data query webpage display program

Also Published As

Publication number Publication date
CN103092917B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN103092917B (en) A kind of customized label realizes the querying method of browser page business dictionary
US20020129059A1 (en) XML auto map generator
US7424670B2 (en) Annotating documents in a collaborative application with data in disparate information systems
US8954950B2 (en) Web portal application customization method and system using profiles
US6687704B1 (en) Database model system and method
US20100001834A1 (en) System and method for a message registry and message handling in a service -oriented business framework
US20050114394A1 (en) Mapping XML schema components to qualified Java components
US20080141136A1 (en) Clipping Synchronization and Sharing
US20020049961A1 (en) Rule-based personalization framework
US9229971B2 (en) Matching data based on numeric difference
US20060143198A1 (en) Tree system diagram output method, computer program and recording medium
US20110047146A1 (en) Systems, Methods, and Computer Program Product for Mobile Service Data Browser
US7827197B2 (en) Method for providing a pluggable custom data binding system
EP0996907A1 (en) Object to relational database mapping infrastructure in a customer care and billing system
US20070282616A1 (en) Systems and methods for providing template based output management
CN106940721B (en) Data processing method and system for user-defined selection box
CN101300559A (en) Extensible remote tag markup system and method
US10133826B2 (en) UDDI based classification system
CN102902516A (en) Control inversion based pop-up frame design for call center
CN104809119A (en) Method and device for filtering webpage advertisements
CN101976381A (en) Method and system for managing application assets
CN105808628A (en) Webpage transcoding method, apparatus and system
US8200713B2 (en) Database exploration for building wireless component applications
CN103593473A (en) Form displaying method and system
US20060253833A1 (en) System and method for efficient hosting of wireless applications by encoding application component definitions

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