CN106610921A - User-defined tag-based contract template realization method - Google Patents

User-defined tag-based contract template realization method Download PDF

Info

Publication number
CN106610921A
CN106610921A CN201510691796.4A CN201510691796A CN106610921A CN 106610921 A CN106610921 A CN 106610921A CN 201510691796 A CN201510691796 A CN 201510691796A CN 106610921 A CN106610921 A CN 106610921A
Authority
CN
China
Prior art keywords
tag library
label
contract template
tag
uri
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
Application number
CN201510691796.4A
Other languages
Chinese (zh)
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.)
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Original Assignee
ZHENJIANG JINRUAN COMPUTER TECHNOLOGY 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 ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD filed Critical ZHENJIANG JINRUAN COMPUTER TECHNOLOGY CO LTD
Priority to CN201510691796.4A priority Critical patent/CN106610921A/en
Publication of CN106610921A publication Critical patent/CN106610921A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the field of an information data management technology, particularly to a user-defined tag-based contract template realization method. In recent years, with rapid development of software systems, there are more and more individualized demands in client use in the aspect of application of management software; particularly specific to contract signing, each business contract has certain field information which needs to be set in an individualized manner; and however, a conventional software development technology is hard to satisfy the individualized demand. Therefore, the invention provides the user-defined tag-based contract template realization method. Individualized management on contracts is realized based on the user-defined tag.

Description

A kind of contract template realizing method based on customized label
Technical field
The present invention relates to information data management technique field, particularly relates to a kind of contract template realizing method based on customized label.
Background technology
First customized label refers to JSP customized labels.Customized label is functionally similar with javaBean in logic, all encapsulates Java codes.Customized label is reusable component code, and allows developer and provide logical name for complicated operation.
In recent years, software system quickly grows.In the use of management software, the individual demand that client uses is also more and more, especially for the signing of contract, all more or less has some to need the field information of personal settings on every part of business contract.Using traditional software development technique, it is difficult to meet such individual demand.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of contract template realizing method based on customized label, for solving the business contract self-defined information field in business management software.
To solve above-mentioned technical problem, the personalized contract of lease of property template realizing method based on customized label of the present invention, including following ingredient:
Label:Described based on XML file;
Tag library:For storing various label datas;
Tag library describes file:It is an XML file that tag library describes file, for providing the mapping relations quoted to label in class and JSP in tag library;
Tag processes class:Based on the class that Java language is realized, inherit the TagSupport in J2EE or extend SimpleTag interfaces, for realizing the concrete function of self-defined JSP labels.
A kind of contract template realizing method based on customized label of the present invention, comprises the steps:
Step 1, self-defined JSP labels:Definition is similar<% @ taglib prefix=”someprefix” uri=”/sometaglib” %>The label of form,
Step 2, recognizes label:The label for representing this self-defined behavior is identified from a tag library specified, find out a self-defined behavior and belong to tag library, must assure that the element of the same prefix used in the same page belongs to this tag library, each tag library defines the prefix of an acquiescence, inserts customized label in the document of tag library or in the page;
Step 3, label instantiation:Realized based on URI so that corresponding class is found in each self-defined behavior, and this URI contains a character string, and container positions tld files with it, and the title of all tag processes classes in tag library can be found in tld files;
Step 4, sets up mapping relations:When weblication starts, all files ended up with .tld are searched for, for each tld file, first obtain the URI of tag library, be then that each tld file and corresponding URI create mapping relations;
Step 5, matching:In JSP, to match with specific tag library by using the instruction of the tag library with URI attribute value.
Thus complete the function of customized label.
Specific embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, specific embodiment will be described in detail below.
Embodiment 1
Following steps are realized based on J2EE platforms:
The personalized contract of lease of property template realizing method based on customized label of the present invention, including following ingredient:
Label:Described based on XML file;
Tag library:For storing various label datas;
Tag library describes file:It is an XML file that tag library describes file, for providing the mapping relations quoted to label in class and JSP in tag library;
Tag processes class:Based on the class that Java language is realized, inherit the TagSupport in J2EE or extend SimpleTag interfaces, for realizing the concrete function of self-defined JSP labels.
The personalized contract of lease of property template realizing method based on customized label of the present invention, comprises the steps:
Step 1, self-defined JSP labels:Definition is similar<% @ taglib prefix=”someprefix” uri=”/sometaglib” %>The label of form,
Step 2, recognizes label:The label for representing this self-defined behavior is identified from a tag library specified, find out a self-defined behavior and belong to tag library, must assure that the element of the same prefix used in the same page belongs to this tag library, each tag library defines the prefix of an acquiescence, inserts customized label in the document of tag library or in the page;
Step 3, label instantiation:Realized based on URI so that corresponding class is found in each self-defined behavior, and this URI contains a character string, and container positions tld files with it, and the title of all tag processes classes in tag library can be found in tld files;
Step 4, sets up mapping relations:When weblication starts, all files ended up with .tld are searched for, for each tld file, first obtain the URI of tag library, be then that each tld file and corresponding URI create mapping relations;
Step 5, matching:In JSP, to match with specific tag library by using the instruction of the tag library with URI attribute value.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, on the premise of without departing from principle of the present invention; some improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (6)

1. a kind of contract template realizing method based on customized label, including following ingredient:
Label:Described based on XML file;
Tag library:For storing various label datas;
Tag library describes file:It is an XML file that tag library describes file, for providing the mapping relations quoted to label in class and JSP in tag library;
Tag processes class:Based on the class that Java language is realized, inherit the TagSupport in J2EE or extend SimpleTag interfaces, for realizing the concrete function of self-defined JSP labels.
2. a kind of contract template realizing method based on customized label according to claim 1, its feature is including being implemented as described below step:
Step 1, self-defined JSP labels:Definition is similar<% @ taglib prefix=”someprefix” uri=”/sometaglib” %>The label of form,
Step 2, recognizes label:The label for representing this self-defined behavior is identified from a tag library specified, find out a self-defined behavior and belong to tag library, must assure that the element of the same prefix used in the same page belongs to this tag library, each tag library defines the prefix of an acquiescence, inserts customized label in the document of tag library or in the page;
Step 3, label instantiation:Realized based on URI so that corresponding class is found in each self-defined behavior, and this URI contains a character string, and container positions tld files with it, and the title of all tag processes classes in tag library can be found in tld files;
Step 4, sets up mapping relations:When weblication starts, all files ended up with .tld are searched for, for each tld file, first obtain the URI of tag library, be then that each tld file and corresponding URI create mapping relations;
Step 5, matching:In JSP, to match with specific tag library by using the instruction of the tag library with URI attribute value.
3. the contract template realizing method based on customized label according to claim 2, it is characterised in that need to be realized based on Java language.
4. the contract template realizing method based on customized label according to claim 2, it is characterised in that described tag library is XML file storehouse.
5. the contract template realizing method based on customized label according to claim 2, it is characterised in that B/S mode need to be based on.
6. the contract template realizing method based on customized label according to claim 2, it is characterised in that the contract template, for commercial contract.
CN201510691796.4A 2015-10-23 2015-10-23 User-defined tag-based contract template realization method Pending CN106610921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510691796.4A CN106610921A (en) 2015-10-23 2015-10-23 User-defined tag-based contract template realization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510691796.4A CN106610921A (en) 2015-10-23 2015-10-23 User-defined tag-based contract template realization method

Publications (1)

Publication Number Publication Date
CN106610921A true CN106610921A (en) 2017-05-03

Family

ID=58610882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510691796.4A Pending CN106610921A (en) 2015-10-23 2015-10-23 User-defined tag-based contract template realization method

Country Status (1)

Country Link
CN (1) CN106610921A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446499A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Contract template generation method, device, equipment and medium based on XML

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164226A (en) * 2013-03-15 2013-06-19 成都三零凯天通信实业有限公司 Set top box human-computer interface automatic generating method
CN104252344A (en) * 2013-06-27 2014-12-31 镇江雅迅软件有限责任公司 Method utilizing template for batched generation of contracts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164226A (en) * 2013-03-15 2013-06-19 成都三零凯天通信实业有限公司 Set top box human-computer interface automatic generating method
CN104252344A (en) * 2013-06-27 2014-12-31 镇江雅迅软件有限责任公司 Method utilizing template for batched generation of contracts

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YAOFENG911: "taglib 自定义标签_指南_20080901_CN", 《HTTPS://WENKU.BAIDU.COM/VIEW/24F9250D7CD184254B3535F4》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446499A (en) * 2018-09-25 2019-03-08 平安科技(深圳)有限公司 Contract template generation method, device, equipment and medium based on XML

Similar Documents

Publication Publication Date Title
US8261241B2 (en) Converting format strings to regular expressions
US7913161B2 (en) Computer-implemented methods and systems for electronic document inheritance
SG11201907331PA (en) File generation method, device, server, and storage medium
CN102122280B (en) Method and system for intelligently extracting content object
CN101430714B (en) Content structuring process method and system based on model
CN105243168B (en) A kind of data migration method and system
CN102737128A (en) Dynamic webpage processing method and device based on browser
US20150347353A1 (en) Document layering platform
CN103109264A (en) Creating a configuration file template
CN101710282A (en) Method and device for realizing system support for multi-language resource
CN100585561C (en) Method for clipping relocatable ELF files in embedded system
CN101008940A (en) Method and device for automatic processing font missing
US9524354B2 (en) Device, method, and program for processing data with tree structure
CN103942280A (en) Automatic code generating method based on data structure
CN106610921A (en) User-defined tag-based contract template realization method
CN103984554A (en) Software design document generating method and device
US20200327427A1 (en) System for deriving data in constrained environments
CN102063415B (en) Method and system for embedding single-byte fonts in PDF (Portable Document Format) file
CN103440272A (en) Database maintenance method and device
CN109684400A (en) A method of the master data management automation based on RPA finance robot
CN104346616A (en) Character recognition device and character recognition method
CN102508690B (en) Storing method and decoding method for command line of embedded equipment
CN101655849A (en) Method for defining and storing code information service data of electronic products
CN102708206A (en) Data format description method
WO2016031959A1 (en) Migration support device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170503