Method for implementing custom date selection control based on Strusts2 in WEB system

An implementation method and custom technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems affecting development speed, low code sharing, etc., and achieve the effect of simple development and friendly operation

Inactive Publication Date: 2011-09-14
SHENZHEN CLOU ELECTRONICS
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] During the development and implementation of power system projects for many years, the application of WEB system has become more and more extensive. Various data are often queried in the WEB system. Some of these data are annual data, some are monthly data, and some are daily data, or It is hourly, half-hourly, 15-minute data, or data between the start and end time, which causes developers to spend more time on each page to process date selection, which affects the development speed, and the degree of code sharing is also high. not tall

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for implementing custom date selection control based on Strusts2 in WEB system
  • Method for implementing custom date selection control based on Strusts2 in WEB system
  • Method for implementing custom date selection control based on Strusts2 in WEB system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The present invention will be further described below in conjunction with the accompanying drawings of the description.

[0018] A method for realizing a self-defined date selection control based on Struts2 in a WEB system, comprising the following steps:

[0019] S1: Create a standard XML tld tag file, the tag file contains the declaration of the custom tag, the declaration points out the name of the tag, the class that implements the tag, and the attribute of the tag; the defined tag includes the date format, whether there is Deadline, whether to add time input box, whether to add default value, content and other required labels;

[0020] S2: The JSP page uses the date selection control, according to the provisions of the label file, references the date selection control, and sets the attribute of the label; the attribute setting of the label is: "yyyy" is the selected year, "yyyyMM "For the selection of year and month, if there is a deadline is True, then add the se...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention is applicable to the field of browser/server (B/S) systems and provides a method for implementing a custom date selection control based on a Strusts2 technology. The method comprises the following steps of: creating a taglib file (.tld) and writing a tag statement; writing a custom tag class; customizing a JS script relevant to a custom tag and a CSS style definition; and using the tag in a webpage. By the method, a start date and an expiration date can be selected in the WEB webpage (year, month, date, year and month or year, month and date can be selected, and a start time or an expiration time can be input according to a user requirement), so the development process is more efficient, the code sharing degree is higher, the date selection in the webpage is more flexible and the technology is more user-friendly.

Description

technical field [0001] The invention relates to the field of system development and application of Struts2-based WEB technology, in particular to an implementation method of a self-defined date selection control based on Struts2. Background technique [0002] During the development and implementation of power system projects for many years, the application of WEB system has become more and more extensive. Various data are often queried in the WEB system. Some of these data are annual data, some are monthly data, and some are daily data, or It is hourly, half-hourly, 15-minute data, or data between the start and end time, which causes developers to spend more time on each page to process date selection, which affects the development speed, and the degree of code sharing is also high. not tall. [0003] In this way, a more effective, practical, and high-efficiency method for realizing various date selection requirements is needed. The method of realization is more convenient,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 杨忠
Owner SHENZHEN CLOU ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products