CN102262539A - Implementation method for self-defined paging dataTable control based on struts2 technology - Google Patents

Implementation method for self-defined paging dataTable control based on struts2 technology Download PDF

Info

Publication number
CN102262539A
CN102262539A CN2011102159108A CN201110215910A CN102262539A CN 102262539 A CN102262539 A CN 102262539A CN 2011102159108 A CN2011102159108 A CN 2011102159108A CN 201110215910 A CN201110215910 A CN 201110215910A CN 102262539 A CN102262539 A CN 102262539A
Authority
CN
China
Prior art keywords
data
control
datatable
page
label
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
CN2011102159108A
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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics 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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN2011102159108A priority Critical patent/CN102262539A/en
Publication of CN102262539A publication Critical patent/CN102262539A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an implementation method for a self-defined paging dataTable control based on a struts2 technology. The implementation method is characterized by comprising the following steps of: 1, creating a standard extensible markup language (XML) format technical logistic data (tld) label file by using a text creation module; 2, using the dataTable control on java server pages (JSP); 3, encapsulating the data queried by a server into a data list by using an encapsulation module; 4, resolving the pages quoting the dataTable control by the server; and 5, after finishing the parsing, automatically quoting a cascading style sheets (CSS) style file of the dataTable control by the JSP pages to perform style control on output contents, and simultaneously, performing Ajax demand processing on data paging by quoting a java server (JS) file, realizing partial repainting of the pages, and improving the system execution efficiency. The implementation method is very convenient and convenient, and by using the implementation method, the automatic processing of data is more convenient, and the efficiency is higher.

Description

A kind of implementation method based on the self-defining paging dataTable of struts2 technology control
Technical field
The present invention relates to the system development application of the WEB technology on Struts2 basis, particularly based on the implementation method of the self-defining paging dataTable of struts2 technology control.
Background technology
For many years, in the project development and implementation process of electric system, the application of WEB system more and more widely, often on the page, show the various data of output in the WEB system with forms mode, these data forms are not quite similar, and data volume is big, cause the developer to show in each page data output and spend many time to handle, influence tempo of development, and the code sharing degree is not high yet.
Summary of the invention
The purpose of this invention is to provide a kind of implementation method based on the self-defining paging dataTable of struts2 technology control.This implementation method is very convenient, efficient, and makes the automatic processing of data more convenient, and efficient is higher.
For achieving the above object, a kind of implementation method based on the self-defining paging dataTable of struts2 technology control may further comprise the steps:
S1: by the tld label file of a standard XML form of a text creation module creation, and the tld label file is stored in the storer, comprise the statement to customized label in the tld label file, the name of label, the class that realizes label, the attribute information of label have been pointed out in statement.
The S2:JSP page uses data Table control, and according to the regulation of tld label file, the JSP page is quoted data Table control, and the attribute of label is set.
S3: the data that server checks out will the storer in server are packaged into the data list of data definition class form by package module.
S4: when server is resolved the page of quoting data Table control, server finds corresponding labels class, this control is handled and according to the tag attributes that the user sets control resolved, resolve to the HTML code of standard, so that the page shows; The data acquisition on request form output of this control to being quoted simultaneously, the while is according to the page number of the parameter video data of quoting, to make things convenient for page operation.
S5: after parsing is finished, the JSP page also can be quoted the CSS pattern file of data Table control automatically, and output content is carried out pattern control, quotes the JS file simultaneously the Ajax Request Processing is carried out in the data paging, and the part of realizing the page redraws raising system execution efficient.
As improvement, in above-mentioned steps S1, create the tld label file of a standard XML, the label of definition has data volume, whether paging, whether Ajax paging request.
As improvement, in above-mentioned steps S2, when the JSP page is quoted data Table control, quote data Table control according to page functional requirement, each property parameters is provided with and is exported.
As improvement, in above-mentioned steps S3, server encapsulates by the dataTable control according to the form of data object class earlier required data presented, and required data presented comprises gauge outfit literal, the sum of data, data number of pages, every page of form that number, data value, data type, data are exported of dataTable control.
As improvement, in above-mentioned steps S4, server is resolved the dataTable control in the JSP page, server then finds the class file of corresponding label J AVA, according to the parameter of setting data Table control is resolved, the HTML code of the standard after resolving is returned to the JSP page, so that client shows, and the packaged data acquisition of dataTable control binding exported by the requirement of form and definition, and the page number of display paging.
The invention has the beneficial effects as follows: method of the present invention since by reference data Table control realize that therefore, the automatic processing of data is more convenient, efficient is higher.
Description of drawings
Fig. 1 is a frame diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is further elaborated.
As shown in Figure 1, a kind of implementation method based on the self-defining paging dataTable of struts2 technology control may further comprise the steps:
S1: by the tld label file of a standard XML form of a text creation module creation, and the tld label file is stored in the storer, comprise the statement to customized label in the tld label file, the name of label, the class that realizes label, the attribute information of label have been pointed out in statement.Wherein, defined label has data volume, whether paging, whether Ajax paging request.
The S2:JSP page uses data Table control, and according to the regulation of tld label file, the JSP page is quoted data Table control, and the attribute of label is set.When the JSP page is quoted data Table control, quote data Table control, each property parameters is provided with and exports according to page functional requirement.
S3: the data that server checks out will the storer in server are packaged into the data list of data definition class form by package module.Server encapsulates by package module according to the form of data object class earlier required data presented, and required data presented comprises gauge outfit literal, the sum of data, data number of pages, every page of form that number, data value, data type, data are exported of dataTable control.
S4: when server is resolved the page of quoting data Table control, server finds corresponding labels class, this control is handled and according to the tag attributes that the user sets control resolved, resolve to the HTML code of standard, so that the page shows; The data acquisition on request form output of this control to being quoted simultaneously, the while is according to the page number of the parameter video data of quoting, to make things convenient for page operation.
S5: after parsing is finished, the JSP page also can be quoted the CSS pattern file of data Table control automatically, and output content is carried out pattern control, quotes the JS file simultaneously the Ajax Request Processing is carried out in the data paging, and the part of realizing the page redraws raising system execution efficient.Server is resolved the dataTable control in the JSP page, server then finds the class file of corresponding label J AVA, according to the parameter of setting data Table control is resolved, the HTML code of the standard after resolving is returned to the JSP page, so that client shows, and the packaged data acquisition of dataTable control binding exported by the requirement of form and definition, and the page number of display paging.
Method of the present invention since by reference data Table control realize that therefore, the automatic processing of data is more convenient, efficient is higher.

Claims (5)

1. implementation method based on the self-defining paging dataTable of struts2 technology control is characterized in that: may further comprise the steps:
S1: by the tld label file of a standard XML form of a text creation module creation, and the tld label file is stored in the storer, comprise the statement to customized label in the tld label file, the name of label, the class that realizes label, the attribute information of label have been pointed out in statement;
The S2:JSP page uses data Table control, and according to the regulation of tld label file, the JSP page is quoted data Table control, and the attribute of label is set;
S3: the data that server checks out will the storer in server are packaged into the data list of data definition class form by package module;
S4: when server is resolved the page of quoting data Table control, server finds corresponding labels class, this control is handled and according to the tag attributes that the user sets control resolved, resolve to the HTML code of standard, so that the page shows; The data acquisition on request form output of this control to being quoted simultaneously, the while is according to the page number of the parameter video data of quoting, to make things convenient for page operation;
S5: after parsing is finished, the JSP page also can be quoted the CSS pattern file of data Table control automatically, and output content is carried out pattern control, quotes the JS file simultaneously the Ajax Request Processing is carried out in the data paging, and the part of realizing the page redraws raising system execution efficient.
2. the implementation method based on the self-defining paging dataTable of struts2 technology control according to claim 1, it is characterized in that: in above-mentioned steps S1, create the tld label file of a standard XML, the label of definition has data volume, whether paging, whether Ajax paging request.
3. the implementation method based on the self-defining paging dataTable of struts2 technology control according to claim 1, it is characterized in that: in above-mentioned steps S2, when the JSP page is quoted data Table control, quote data Table control according to page functional requirement, each property parameters is provided with and exports.
4. the implementation method based on the self-defining paging dataTable of struts2 technology control according to claim 1, it is characterized in that: in above-mentioned steps S3, server encapsulates by the dataTable control according to the form of data object class earlier required data presented, and required data presented comprises gauge outfit literal, the sum of data, data number of pages, every page of form that number, data value, data type, data are exported of dataTable control.
5. the implementation method based on the self-defining paging dataTable of struts2 technology control according to claim 1, it is characterized in that: in above-mentioned steps S4, server is resolved the dataTable control in the JSP page, server then finds the class file of corresponding label J AVA, according to the parameter of setting data Table control is resolved, the HTML code of the standard after resolving is returned to the JSP page, so that client shows, and the packaged data acquisition of dataTable control binding exported by the requirement of form and definition, and the page number of display paging.
CN2011102159108A 2011-07-29 2011-07-29 Implementation method for self-defined paging dataTable control based on struts2 technology Pending CN102262539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102159108A CN102262539A (en) 2011-07-29 2011-07-29 Implementation method for self-defined paging dataTable control based on struts2 technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102159108A CN102262539A (en) 2011-07-29 2011-07-29 Implementation method for self-defined paging dataTable control based on struts2 technology

Publications (1)

Publication Number Publication Date
CN102262539A true CN102262539A (en) 2011-11-30

Family

ID=45009177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102159108A Pending CN102262539A (en) 2011-07-29 2011-07-29 Implementation method for self-defined paging dataTable control based on struts2 technology

Country Status (1)

Country Link
CN (1) CN102262539A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571934A (en) * 2011-12-22 2012-07-11 深圳华强电子交易网络有限公司 WEB page data binding method
CN102945287A (en) * 2012-11-29 2013-02-27 南京睿恒智晟软件科技有限公司 Java server page (JSP) data automatic paging java standard tag library (JSTL) label technology and application
CN102981861A (en) * 2012-12-12 2013-03-20 上海航天测控通信研究所 Using method of custom control based on Qt
CN103186516A (en) * 2011-12-29 2013-07-03 广州市中海达测绘仪器有限公司 Method, device and system for generating monitoring graph
CN103677788A (en) * 2012-09-25 2014-03-26 深圳市金正方科技股份有限公司 Reuse framework generating method, device and application system based on J2EE distributed architecture
CN103677789A (en) * 2012-09-25 2014-03-26 深圳市金正方科技有限公司 Table data displaying method and system based on GRID assembly
CN105068833A (en) * 2015-07-31 2015-11-18 南威软件股份有限公司 Plug-in form based method for carrying out rapid transfer of BS system in page tab mode
CN105608196A (en) * 2015-12-22 2016-05-25 国云科技股份有限公司 Paging method based on HTML fragmenting technology
CN107450891A (en) * 2016-05-30 2017-12-08 阿里巴巴集团控股有限公司 Paging control implementation method, device and equipment
CN109067733A (en) * 2018-07-27 2018-12-21 成都华为技术有限公司 The method and apparatus for sending data, and the method and apparatus for receiving data
CN110276053A (en) * 2019-06-26 2019-09-24 中国船舶重工集团公司第七一九研究所 Display methods, device and the electronic equipment of the data of custom coding format

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143774A1 (en) * 1998-03-09 2002-10-03 Vandersluis Kirstan Anderson Dynamic, hierarchical data exchange system
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
US20020143774A1 (en) * 1998-03-09 2002-10-03 Vandersluis Kirstan Anderson Dynamic, hierarchical data exchange system
CN102096588A (en) * 2011-03-24 2011-06-15 南京朗睿软件科技有限公司 Control-containing page establishing method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
PENGX: "Struts2中实现自定义分页标签 --功能扩充", 《HTTP://WWW.360DOC.COM/CONTENT/08/0902/15/61497_1602839.SHTML#》 *
PENGX: "Struts2中实现自定义分页标签", 《HTTP://WWW.360DOC.COM/CONTENT/08/0902/15/61497_1602824.SHTML#》 *
时巍: "基于Struts2框架的数据库分页组件的设计与实现", 《沈阳大学学报》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571934A (en) * 2011-12-22 2012-07-11 深圳华强电子交易网络有限公司 WEB page data binding method
CN103186516A (en) * 2011-12-29 2013-07-03 广州市中海达测绘仪器有限公司 Method, device and system for generating monitoring graph
CN103677788A (en) * 2012-09-25 2014-03-26 深圳市金正方科技股份有限公司 Reuse framework generating method, device and application system based on J2EE distributed architecture
CN103677789A (en) * 2012-09-25 2014-03-26 深圳市金正方科技有限公司 Table data displaying method and system based on GRID assembly
CN102945287B (en) * 2012-11-29 2015-09-09 南京睿恒智晟软件科技有限公司 JSP data automatic paging JSTL stamp methods
CN102945287A (en) * 2012-11-29 2013-02-27 南京睿恒智晟软件科技有限公司 Java server page (JSP) data automatic paging java standard tag library (JSTL) label technology and application
CN102981861A (en) * 2012-12-12 2013-03-20 上海航天测控通信研究所 Using method of custom control based on Qt
CN105068833A (en) * 2015-07-31 2015-11-18 南威软件股份有限公司 Plug-in form based method for carrying out rapid transfer of BS system in page tab mode
CN105068833B (en) * 2015-07-31 2017-12-22 南威软件股份有限公司 The method of BS system tab pattern fast transferrings based on card format
CN105608196A (en) * 2015-12-22 2016-05-25 国云科技股份有限公司 Paging method based on HTML fragmenting technology
CN107450891A (en) * 2016-05-30 2017-12-08 阿里巴巴集团控股有限公司 Paging control implementation method, device and equipment
CN109067733A (en) * 2018-07-27 2018-12-21 成都华为技术有限公司 The method and apparatus for sending data, and the method and apparatus for receiving data
US11405458B2 (en) 2018-07-27 2022-08-02 Huawei Cloud Computing Technologies Co., Ltd. Sending and receiving data using multiple objects with a single storage request
CN110276053A (en) * 2019-06-26 2019-09-24 中国船舶重工集团公司第七一九研究所 Display methods, device and the electronic equipment of the data of custom coding format

Similar Documents

Publication Publication Date Title
CN102262539A (en) Implementation method for self-defined paging dataTable control based on struts2 technology
CN104461484B (en) The implementation method and device of front-end template
CN108259620B (en) Advertisement editing and previewing method, intelligent terminal, system and storage device
CN102945287B (en) JSP data automatic paging JSTL stamp methods
WO2017088509A1 (en) Page customization method and device
CN103677789B (en) Table data based on GRID components shows method and system
CN103077185A (en) Object-based user-defined information-expanding method
CN111562919A (en) Method, system and storage medium for generating front-end webpage code based on PSD file
CN103955364A (en) Front end assembly method suitable for mobile phone
CN104158836A (en) Method for rendering mobile application interface through data
CN106055337A (en) Interface generation method and device
CN103389895A (en) Method and system for generating front end page
CN103631578B (en) Method for exhibiting data in a kind of distribution automation system
CN113419728B (en) Marketing page building method, device, equipment and storage medium
EP3640817A1 (en) System and method to convert a webpage built on a legacy framework to a webpage compatible with a target framework
CN105447198A (en) Convenient page script importing method and device
CN109918175A (en) Picture Generation Method, device, storage medium and electronic equipment
CN111158687A (en) JAVA plug-in interface generation method and device, computer equipment and storage medium
CN108885544B (en) Front-end page internationalized processing method, application server and computer-readable storage medium
CN104915416A (en) Method capable of quickly deriving bill of material of components containing specific attributes
CN107193549A (en) Webpage quick development method based on metadata
CN102306163A (en) Dynamic integration technology based on B2B (business to business) platform
CN102243663A (en) Dynamic labeling method based on electronic drawing
CN102637290B (en) Operating system based on browser and compiling method
CN102184219A (en) Method for implementing custom date selection control based on Strusts2 in WEB system

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

Application publication date: 20111130

RJ01 Rejection of invention patent application after publication