[go: up one dir, main page]

CN103198142B - Page data renewal processing method, client and server - Google Patents

Page data renewal processing method, client and server Download PDF

Info

Publication number
CN103198142B
CN103198142B CN201310134335.8A CN201310134335A CN103198142B CN 103198142 B CN103198142 B CN 103198142B CN 201310134335 A CN201310134335 A CN 201310134335A CN 103198142 B CN103198142 B CN 103198142B
Authority
CN
China
Prior art keywords
operation interface
identifier
page
interface
server
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.)
Active
Application number
CN201310134335.8A
Other languages
Chinese (zh)
Other versions
CN103198142A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310134335.8A priority Critical patent/CN103198142B/en
Publication of CN103198142A publication Critical patent/CN103198142A/en
Application granted granted Critical
Publication of CN103198142B publication Critical patent/CN103198142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明实施例提供一种页面数据更新处理方法、客户端及服务器,该方法包括:接收来自客户端上的操作界面发送的第一操作请求,根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理,由于每个操作界面有唯一的、指示该操作界面的标识,使得客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使客户端通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。

An embodiment of the present invention provides a page data update processing method, a client and a server. The method includes: receiving a first operation request sent from an operation interface on the client, and performing operations in the buffer space according to the first page update information. The page corresponding to the interface identifier is updated. Since each operation interface has a unique identifier indicating the operation interface, the client will update the intermediate data generated in each step during the paging and step-by-step operation of the maintenance object. The information is cached in the shared cache space with the identifier of the operation interface. The data of each operation interface in the cache space is independent of each other. Even if the client operates on the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

Description

页面数据更新处理方法、客户端及服务器Page data update processing method, client and server

技术领域technical field

本发明涉及网络通信技术领域,尤其涉及一种页面数据更新方法、客户端及服务器。The invention relates to the technical field of network communication, in particular to a method for updating page data, a client and a server.

背景技术Background technique

WEB应用系统中,信息维护员通过客户端的IE浏览器等可以对服务器进行访问、维护等,通过浏览器的不同选项卡或不同的窗口显示页面,采用中间数据缓存的机制进行业务维护等。In the WEB application system, the information maintainer can access and maintain the server through the IE browser of the client, display pages through different tabs or different windows of the browser, and use the mechanism of intermediate data caching for business maintenance.

现有技术中,一般会采用被维护对象的身份识别号码(Identity,以下简称ID)来操作会话层,即在会话层中存储所有开启的窗口或选项卡中的维护对象的ID,通过该存储的ID来确认维护对象,点击不同选项卡或不同的窗口的页面的“上一步”或“下一步”时,根据ID在会话层中找到对应的维护对象以进行更新维护等。In the prior art, generally, the ID of the object to be maintained (Identity, hereinafter referred to as ID) is used to operate the session layer, that is, the ID of the maintenance object in all opened windows or tabs is stored in the session layer, and through the stored ID to confirm the maintenance object, when you click "Back" or "Next" on the page of different tabs or different windows, find the corresponding maintenance object in the session layer according to the ID for update and maintenance, etc.

然而,当不同页面需要维护的信息比较多时,在进行信息维护的过程中,尤其在进行修改等操作过程中,会对同一个维护对象同时打开两个窗口或选项卡进行比对,此时,若用户无规律的点击不同选项卡或窗口的页面,则由于浏览器的不同窗口或选项卡具有共享会话层的特性,容易造成数据覆盖的问题。However, when there is a lot of information to be maintained on different pages, in the process of information maintenance, especially in the process of modification and other operations, two windows or tabs will be opened for the same maintenance object at the same time for comparison. At this time, If the user irregularly clicks pages of different tabs or windows, different windows or tabs of the browser have the feature of sharing the session layer, which may easily cause data coverage problems.

发明内容Contents of the invention

本发明实施例提供一种页面数据更新处理方法、客户端及服务器,以解决数据更新处理过程中,浏览器的不同的窗口或不同的选项卡由于共享会话层而造成的数据覆盖的问题。Embodiments of the present invention provide a page data update processing method, client and server to solve the problem of data coverage caused by different windows or different tabs of the browser due to the shared session layer during the data update process.

第一个方面,本发明实施例提供一页面种数据更新处理方法,包括:In the first aspect, the embodiment of the present invention provides a data update processing method, including:

接收来自客户端上的操作界面发送的第一操作请求,所述第一操作请求中包含所述操作界面上的第一页面更新信息和所述操作界面的标识;receiving a first operation request sent from an operation interface on the client, where the first operation request includes update information on the first page on the operation interface and an identifier of the operation interface;

根据所述第一页面更新信息,对缓存空间中与所述操作界面的标识对应的页面进行更新处理。According to the first page update information, update processing is performed on the page corresponding to the identifier of the operation interface in the cache space.

在第一个方面的第一种可能的实现方式中,所述根据所述第一页面更新信息,对缓存空间中与所述操作界面的标识对应的页面进行更新处理之后,还包括:In a first possible implementation manner of the first aspect, after updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information, the method further includes:

向所述客户端发送第一操作响应,所述第一操作响应中包含所述操作界面的标识。Sending a first operation response to the client, where the first operation response includes the identifier of the operation interface.

结合第一个方面或第一个方面的第一种可能的实现方式,在第二种可能的实现方式中,所述接收来自客户端上的操作界面发送的第一操作请求之前,还包括:With reference to the first aspect or the first possible implementation of the first aspect, in the second possible implementation, before receiving the first operation request sent from the operation interface on the client, it further includes:

接收来自所述客户端上的操作界面发送的第二操作请求,所述第二操作请求指示需要对所述操作界面进行更新处理;生成所述操作界面的标识;向客户端返回第二操作响应,所述第二操作响应中携带所述窗口界面的标识。receiving a second operation request sent from the operation interface on the client, the second operation request indicating that the operation interface needs to be updated; generating an identifier of the operation interface; returning a second operation response to the client , the second operation response carries the identifier of the window interface.

结合第一个方面的第二种可能的实现方式,在第三种可能的实现方式中,所述生成所述操作界面的标识,包括:根据所述操作界面的打开时间,生成所述操作界面的标识;或者,随机生成所述操作界面的标识。With reference to the second possible implementation of the first aspect, in a third possible implementation, the generating the identifier of the operation interface includes: generating the operation interface according to the opening time of the operation interface or, randomly generate the identifier of the operation interface.

结合第一个方面的第一种、第二中或第三种可能的实现方式,在第四种可能的实现方式中,所述操作界面的标识采用隐藏字段的形式携带在所述操作响应中。With reference to the first, second or third possible implementation of the first aspect, in a fourth possible implementation, the identifier of the operation interface is carried in the operation response in the form of a hidden field .

结合第一个方面、第一个方面的第一种至第四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,所述根据所述第一页面更新信息,对缓存空间中与所述操作界面的标识对应的页面进行更新处理之后,还包括:In combination with the first aspect, any one of the first to fourth possible implementations of the first aspect, in the fifth possible implementation, according to the first page The update information, after updating the page corresponding to the identifier of the operation interface in the cache space, further includes:

根据预设策略,对所述操作界面的标识进行清除;或者,According to a preset strategy, clear the logo of the operation interface; or,

接收来自所述客户端上的操作界面发送的更新处理结束请求,对所述操作界面的标识进行清除。Receiving an update processing end request sent from the operation interface on the client, and clearing the identifier of the operation interface.

结合第一个方面的第五种可能的实现方式,在第六种可能的实现方式中,所述根据预设策略,对所述操作界面的标识进行清除,包括:With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the clearing the identifier of the operation interface according to a preset strategy includes:

根据定时清理策略或者最大标识数限制策略,对所述操作界面的标识进行清除。The identifiers of the operation interface are cleared according to a timing cleaning strategy or a strategy of limiting the maximum number of identifiers.

结合第一个方面、第一个方面的第一种至第六种可能的实现方式中的任一种可能的实现方式,在第七种可能的实现方式中,所述操作界面为浏览器窗口或选项卡。With reference to the first aspect, any one of the first to sixth possible implementations of the first aspect, in a seventh possible implementation, the operation interface is a browser window or tab.

结合第一个方面、第一个方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第八种可能的实现方式中,所述缓存空间为会话层、信息记录程序或分布式内存对象缓存系统。In combination with the first aspect, any one of the first to seventh possible implementations of the first aspect, in an eighth possible implementation, the cache space is a session layer, Cookies or distributed memory object caching systems.

第二个方面,本发明实施例提供一种页面数据更新处理方法,包括:In the second aspect, the embodiment of the present invention provides a page data update processing method, including:

通过操作界面向服务器发送第一操作请求,所述第一操作请求中包含所述操作界面上的第一页面更新信息和所述操作界面的标识;Sending a first operation request to the server through the operation interface, the first operation request including the first page update information on the operation interface and the identifier of the operation interface;

接收所述服务器发送的第一操作响应,所述第一操作响应中包含所述操作界面的标识;receiving a first operation response sent by the server, where the first operation response includes the identifier of the operation interface;

从所述第一操作响应中解析出所述操作界面的标识。Analyzing the identifier of the operation interface from the first operation response.

在第二个方面的第一种可能的实现方式中,所述通过操作界面向服务器发送第一操作请求,所述第一操作请求中包含所述操作界面上的第一页面更新信息和所述操作界面的标识之前,还包括:In a first possible implementation manner of the second aspect, the first operation request is sent to the server through the operation interface, and the first operation request includes the first page update information on the operation interface and the Before the identification of the operation interface, it also includes:

通过所述操作界面向所述服务器发送第二操作请求,所述第二操作请求需要对所述操作界面进行更新处理;sending a second operation request to the server through the operation interface, where the second operation request needs to update the operation interface;

接收所述服务器发送的第二操作响应,所述第二操作响应中携带所述窗口界面的标识。and receiving a second operation response sent by the server, where the second operation response carries the identifier of the window interface.

第三个方面,本发明实施例提供一种服务器,包括:In a third aspect, an embodiment of the present invention provides a server, including:

接收模块,用于接收来自客户端上的操作界面发送的第一操作请求,所述第一操作请求中包含所述操作界面上的第一页面更新信息和所述操作界面的标识;A receiving module, configured to receive a first operation request sent from an operation interface on the client, where the first operation request includes update information on the first page on the operation interface and an identifier of the operation interface;

处理模块,用于根据所述第一页面更新信息,对缓存空间中与所述操作界面的标识对应的页面进行更新处理。A processing module, configured to update the page corresponding to the identifier of the operation interface in the cache space according to the first page update information.

在第三个方面的第一种可能的实现方式中,所述服务器还包括:In a first possible implementation manner of the third aspect, the server further includes:

第一发送模块,用于向所述客户端发送第一操作响应,所述第一操作响应中包含所述操作界面的标识。A first sending module, configured to send a first operation response to the client, where the first operation response includes the identifier of the operation interface.

结合第三个方面或第三个方面的第一种可能的实现方式,在第二种可能的实现方式中,所述接收模块还用于:In combination with the third aspect or the first possible implementation of the third aspect, in a second possible implementation, the receiving module is further configured to:

接收来自所述客户端上的操作界面发送的第二操作请求,所述第二操作请求指示需要对所述操作界面进行更新处理;receiving a second operation request sent from the operation interface on the client, the second operation request indicating that the operation interface needs to be updated;

所述处理模块还用于生成所述操作界面的标识;The processing module is also used to generate an identifier of the operation interface;

所述服务器还包括第二发送模块,用于向客户端返回第二操作响应,所述第二操作响应中携带所述窗口界面的标识。The server further includes a second sending module, configured to return a second operation response to the client, where the second operation response carries the identifier of the window interface.

结合第三个方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理模块,具体用于:In combination with the second possible implementation of the third aspect, in the third possible implementation, the processing module is specifically configured to:

根据所述操作界面的打开时间,生成所述操作界面的标识;或者,Generate an identifier of the operation interface according to the opening time of the operation interface; or,

随机生成所述操作界面的标识。The identifier of the operation interface is randomly generated.

结合第三个方面的第一种、第二中或第三种可能的实现方式,在第四种可能的实现方式中,所述操作界面的标识采用隐藏字段的形式携带在所述操作响应中。With reference to the first, second or third possible implementation of the third aspect, in a fourth possible implementation, the identifier of the operation interface is carried in the operation response in the form of a hidden field .

结合第三个方面、第三个方面的第一种至第四种可能的实现方式中的任一种可能的实现方式,在第五种可能的实现方式中,所述服务器还包括:With reference to the third aspect, any possible implementation manner in the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner, the server further includes:

清除模块,用于根据预设策略,对所述操作界面的标识进行清除;或者,A clearing module, configured to clear the identifier of the operation interface according to a preset strategy; or,

在所述接收模块接收到来自所述客户端上的操作界面发送的更新处理结束请求时,对所述操作界面的标识进行清除。When the receiving module receives an update processing end request sent from the operation interface on the client, it clears the identifier of the operation interface.

结合第三个方面的第五种可能的实现方式,在第六种可能的实现方式中,所述清除模块具体用于:With reference to the fifth possible implementation of the third aspect, in a sixth possible implementation, the clearing module is specifically configured to:

根据定时清理策略或者最大标识数限制策略,对所述操作界面的标识进行清除。The identifiers of the operation interface are cleared according to a timing cleaning strategy or a strategy of limiting the maximum number of identifiers.

结合第三个方面、第三个方面的第一种至第六种可能的实现方式中的任一种可能的实现方式,在第七种可能的实现方式中,所述操作界面为浏览器窗口或选项卡。With reference to the third aspect, any one of the first to sixth possible implementations of the third aspect, in a seventh possible implementation, the operation interface is a browser window or tab.

结合第三个方面、第三个方面的第一种至第七种可能的实现方式中的任一种可能的实现方式,在第八种可能的实现方式中,所述缓存空间为会话层、信息记录程序或分布式内存对象缓存系统。In combination with the third aspect, any possible implementation manner of the first to the seventh possible implementation manners of the third aspect, in an eighth possible implementation manner, the cache space is a session layer, Cookies or distributed memory object caching systems.

第四个方面,本发明实施例提供一种客户端,包括:In a fourth aspect, an embodiment of the present invention provides a client, including:

发送模块,用于通过操作界面向服务器发送第一操作请求,所述第一操作请求中包含所述操作界面上的第一页面更新信息和所述操作界面的标识;A sending module, configured to send a first operation request to the server through the operation interface, where the first operation request includes the first page update information on the operation interface and the identifier of the operation interface;

接收模块,用于接收所述服务器发送的第一操作响应,所述第一操作响应中包含所述操作界面的标识;A receiving module, configured to receive a first operation response sent by the server, where the first operation response includes the identifier of the operation interface;

解析模块,用于从所述第一操作响应中解析出所述操作界面的标识。A parsing module, configured to parse out the identifier of the operation interface from the first operation response.

在第四个方面的第一种可能的实现方式中,所述发送模块还用于:In a first possible implementation manner of the fourth aspect, the sending module is further configured to:

通过操作界面向所述服务器发送第二操作请求,所述第二操作请求需要对所述操作界面进行更新处理;sending a second operation request to the server through the operation interface, where the second operation request needs to update the operation interface;

所述接收模块还用于接收所述服务器发送的第二操作响应,所述第二操作响应中携带所述窗口界面的标识。The receiving module is further configured to receive a second operation response sent by the server, where the second operation response carries the identifier of the window interface.

本发明实施例提供一种页面数据更新处理方法、客户端及服务器,服务器接收来自客户端上的操作界面发送的包含该操作界面上的第一页面更新信息和操作界面的标识的第一操作请求,根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。本发明实施例中,由于每个操作界面有唯一的、指示该操作界面的标识,当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识的组合唯一指示,使得客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使客户端通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。An embodiment of the present invention provides a page data update processing method, a client and a server, and the server receives the first operation request sent from the operation interface on the client and includes the first page update information on the operation interface and the identifier of the operation interface , according to the first page update information, update the page corresponding to the identifier of the operation interface in the cache space. In the embodiment of the present invention, since each operation interface has a unique identifier indicating the operation interface, when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The combined unique indication of the identity of the object enables the client to cache the intermediate information generated in each step in the shared cache space by using the identifier of the operation interface as the identifier during the paging and step-by-step operation of maintaining the object. The data of each operation interface in the space is independent of each other, even if the client operates on the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明页面数据更新处理方法实施例一的流程图;FIG. 1 is a flow chart of Embodiment 1 of the page data update processing method of the present invention;

图2为本发明页面数据更新处理方法实施例二的流程图;FIG. 2 is a flow chart of Embodiment 2 of the page data update processing method of the present invention;

图3为本发明页面数据更新处理方法实施例三的信令图;FIG. 3 is a signaling diagram of Embodiment 3 of the page data update processing method of the present invention;

图4为本发明服务器实施例一的结构示意图;FIG. 4 is a schematic structural diagram of Embodiment 1 of the server of the present invention;

图5为本发明服务器实施例二的结构示意图;FIG. 5 is a schematic structural diagram of the second embodiment of the server of the present invention;

图6为本发明客户端的结构示意图。FIG. 6 is a schematic structural diagram of the client of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

图1为本发明页面数据更新处理方法实施例一的流程图,本实施例的执行主体为服务器。具体的,本实施例包括如下步骤:FIG. 1 is a flow chart of Embodiment 1 of the page data update processing method of the present invention, and the execution subject of this embodiment is a server. Specifically, this embodiment includes the following steps:

101、接收来自客户端上的操作界面发送的第一操作请求,第一操作请求中包含操作界面上的第一页面更新信息和操作界面的标识。101. Receive a first operation request sent from an operation interface on a client, where the first operation request includes first page update information on the operation interface and an identifier of the operation interface.

客户端上的操作界面一般以选项卡或浏览器窗口的模式呈现,每个选项卡或浏览器窗口可以有一个或多个维护对象,针对每一个维护对象,又可以有包括该维护对象信息的多个页面,每个页面上具有供用户操作的“新增”、“删除”、“修改”或“保存”等命令按钮;或者,供用户选择不同页面的“上一页”或“下一页”等选择按钮。以IE8的操作界面为例,若操作界面为浏览器窗口的显示模式,每打开一个网页,则在新的窗口打开显示该网页;否则,若操作界面为选项卡显示模式,每打开一个网页,则新建选项卡,在新建的选项卡打开显示该网页。本步骤中,客户端对操作界面的第一页面进行更新处理后向服务器发送第一操作请求,例如,可以在信息维护人员、事件触发性的或是周期性的对操作界面的第一页面进行更新处理后,指示客户端对该操作界面的第一页面进行了更新处理,服务器接收该包含操作界面上的第一页面更新信息和操作界面的标识的第一操作请求。具体的,若客户端对不同操作界面的第一页面进行了更新处理,则通过每一个操作界面向服务器发送携带对应操作界面的第一页面更新信息和对应的操作界面的标识(选项卡标识或浏览器窗口标识)的第一操作请求。The operation interface on the client is generally presented in the form of tabs or browser windows, each tab or browser window can have one or more maintenance objects, and for each maintenance object, there can be a Multiple pages, each page has command buttons such as "Add", "Delete", "Modify" or "Save" for users to operate; or "Previous" or "Next" for users to select different pages Page" and other selection buttons. Taking the operation interface of IE8 as an example, if the operation interface is in the browser window display mode, each time a webpage is opened, the webpage will be opened and displayed in a new window; otherwise, if the operation interface is in the tab display mode, each time a webpage is opened, Then create a tab, and open and display the web page in the newly created tab. In this step, the client sends the first operation request to the server after updating the first page of the operation interface. After the update process, the client is instructed to update the first page of the operation interface, and the server receives the first operation request including the update information of the first page on the operation interface and the identifier of the operation interface. Specifically, if the client updates the first pages of different operation interfaces, each operation interface sends to the server the update information of the first page carrying the corresponding operation interface and the identification of the corresponding operation interface (tab identification or browser window ID) for the first action request.

102、根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。102. Perform update processing on the page corresponding to the identifier of the operation interface in the cache space according to the first page update information.

缓存空间是服务器内建的缓存机制,如会话层(session)、分布式内存对象缓存系统(memCached)或IE浏览器的信息记录程序(Cookie)等,本发明并不以此为限制。当服务器接收到客户端发送的携带操作界面的标识的第一页面更新信息后,根据操作界面的标识,在缓存空间中确定出与该标识对应的页面的信息进行更新处理,即将暂存的原始的页面信息更新为第一页面更新信息。一般来说,若操作界面中的维护对象仅有一个或比较固定,则直接根据操作界面的标识从缓存空间中确定出与该标识对应的操作界面并进行更新处理;否则,若操作界面中的维护对象比较多,则在根据操作界面的标识从缓存空间中确定出与该标识对应的操作界面后,还可以根据维护对象的身份标识确定出具体的维护对象进而对该维护对象进行更新处理。亦即,本步骤中,每个操作界面有唯一的、指示该操作界面的标识;当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识唯一指示。The cache space is the built-in cache mechanism of the server, such as the session layer (session), the distributed memory object cache system (memCached) or the information recording program (Cookie) of the IE browser, etc., and the present invention is not limited thereto. When the server receives the update information of the first page carrying the identifier of the operation interface sent by the client, it determines the information of the page corresponding to the identifier in the cache space according to the identifier of the operation interface and performs update processing, that is, the temporarily stored original The page information of is updated to the first page update information. Generally speaking, if there is only one maintenance object in the operation interface or it is relatively fixed, then directly determine the operation interface corresponding to the identifier from the cache space according to the identifier of the operation interface and update it; otherwise, if the If there are many maintenance objects, after the operation interface corresponding to the identification is determined from the cache space according to the identification of the operation interface, the specific maintenance object can be determined according to the identity identification of the maintenance object, and then the maintenance object can be updated. That is, in this step, each operation interface has a unique identifier indicating the operation interface; when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The unique indication of the object's identity.

本发明实施例提供的页面数据更新处理方法,服务器接收来自客户端上的操作界面发送的包含该操作界面上的第一页面更新信息和操作界面的标识的第一操作请求,根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。本发明实施例中,由于每个操作界面有唯一的、指示该操作界面的标识,当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识的组合唯一指示,使得客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使客户端通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。In the page data update processing method provided by the embodiment of the present invention, the server receives the first operation request sent from the operation interface on the client and includes the first page update information on the operation interface and the identification of the operation interface, and updates the first page according to the first operation request. information, and update the page corresponding to the identifier of the operation interface in the cache space. In the embodiment of the present invention, since each operation interface has a unique identifier indicating the operation interface, when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The combined unique indication of the identity of the object enables the client to cache the intermediate information generated in each step in the shared cache space by using the identifier of the operation interface as the identifier during the paging and step-by-step operation of maintaining the object. The data of each operation interface in the space is independent of each other, even if the client operates on the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

上述实施例一中,在根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理之后,服务器可以根据第一操作请求的具体形式,向客户端返回第一操作响应,第一操作响应中包含操作界面的标识。In the first embodiment above, after updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information, the server may return the first operation response to the client according to the specific form of the first operation request , the first operation response contains the identifier of the operation interface.

具体的,若第一操作请求是在客户端对操作界面中的维护对象的第一页面进行更新处理处理后,点击“下一步”进入下一页以更新该维护对象的第二页的信息触发的,即由点击“下一步”触发的,则此时服务器获取最新的第二页的原始页面信息,并将操作界面的标识携带在第二页的原始页面信息中发送给客户端,以使得客户端解析出操作界面的标识确定出操作界面,在确定出的操作界面中显示第二页的原始页面信息并进行更新处理。Specifically, if the first operation request is triggered after the client updates the first page of the maintenance object in the operation interface, click "Next" to enter the next page to update the information on the second page of the maintenance object That is, it is triggered by clicking "Next", then the server obtains the latest original page information of the second page at this time, and sends the identifier of the operation interface to the client in the original page information of the second page, so that The client parses out the identifier of the operation interface to determine the operation interface, displays the original page information of the second page on the determined operation interface, and performs update processing.

若第一操作请求是在客户端对操作界面中的维护对象的第一页面进行更新处理后,点击“保存”触发的,则此时服务器将缓存空间中的更新处理后的维护对象的页面信息更新至数据库,并将操作界面的标识携带在更新处理成功的第一操作响应中向客户端发送。If the first operation request is triggered by clicking "Save" after the client updates the first page of the maintenance object in the operation interface, then the server will cache the updated page information of the maintenance object in the cache space Update to the database, and send the identifier of the operation interface to the client in the first operation response of successful update processing.

进一步的,上述实施例一中,服务器接收来自客户端上的操作界面发送的第一操作请求之前,还需对发起第一操作请求的各个操作界面生成操作界面的标识。具体的,服务器接收来自客户端上的操作界面发送的第二操作请求,第二操作请求指示需要对窗口界面进行更新处理;生成操作界面的标识,向客户端返回第二操作响应,第二操作响应中携带窗口界面的标识。Further, in the first embodiment above, before the server receives the first operation request sent from the operation interface on the client, it needs to generate an operation interface identifier for each operation interface that initiates the first operation request. Specifically, the server receives the second operation request sent from the operation interface on the client, and the second operation request indicates that the window interface needs to be updated; generates the identifier of the operation interface, and returns the second operation response to the client, and the second operation The response carries the identifier of the window interface.

一般来说,客户端在第一次打开操作界面后,若该操作界面中的维护对象唯一或数量比较小,则通过该操作界面向服务器发送第二操作请求,请求对该用户界面进行更新处理;若该操作界面中的维护对象比较多时,选中需要更新处理的对象后再通过该操作界面向服务器发送第二操作请求,此时对该用户界面进行更新处理具体指对该用户界面中的某一个维护对象进行更新处理。Generally speaking, after the client opens the operation interface for the first time, if the maintenance object in the operation interface is unique or the number is relatively small, it will send a second operation request to the server through the operation interface, requesting to update the user interface ; If there are many maintenance objects in the operation interface, select the object to be updated and then send the second operation request to the server through the operation interface. A maintenance object for update processing.

服务器在接收到该第二操作请求后,发现该操作界面没有相应的标识,则为该操作界面生成操作界面的标识。具体的,由于每个操作界面的开启需要时间,使得每个操作界面开启的时间点不同,则服务器可以根据操作界面的打开时间,生成该操作界面的标识;或者,随机的生成该操作界面的标识,例如,可以使用时间戳、随机数等生成操作界面的标识,操作界面的标识的算法仅需保证唯一性即可。After receiving the second operation request, the server finds that the operation interface does not have a corresponding identifier, and generates an identifier of the operation interface for the operation interface. Specifically, since the opening of each operation interface takes time, so that the opening time of each operation interface is different, the server can generate the identifier of the operation interface according to the opening time of the operation interface; or randomly generate the identifier of the operation interface For identification, for example, timestamps, random numbers, etc. can be used to generate the identification of the operation interface, and the algorithm for the identification of the operation interface only needs to ensure uniqueness.

进一步的,由于操作界面的标识仅用于标识该操作界面,并没有具体的业务意义。因此,一般将操作界面的标识采用隐藏字段的形式携带在操作响应中,例如,将操作界面的标识设置为隐藏字段后携带在上述的第一操作响应或第二操作响应中发送给客户端。具体的,可以根据业务需要灵活的选择将操作界面的标识设置为隐藏字段或无需设置。Further, since the identifier of the operation interface is only used to identify the operation interface, it has no specific business meaning. Therefore, the identifier of the operation interface is generally carried in the operation response in the form of a hidden field, for example, the identifier of the operation interface is set as a hidden field and then carried in the above-mentioned first operation response or second operation response and sent to the client. Specifically, the identifier of the operation interface can be flexibly selected as a hidden field or not set according to business needs.

进一步的,为了防止共享的缓存空间中操作界面的标识,或者指示维护对象的操作界面的标识与维护对象的身份标识的组合过多而造成数据拥塞,服务器在根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理之后,还可以根据预设策略,根据定时清理策略或者最大标识数限制策略,对操作界面的标识进行清除,例如,定时的或是事件触发性的去清理该操作界面的标识;或者,设置一个参考时长,若缓存空间中的操作界面的标识或操作界面的标识与维护对象的身份标识的组合的存在时长超过该参考时长,则主动清除;或者,服务器可以在接收到信息维护人员通过客户端上的操作界面发送的更新结束请求,对操作界面的标识进行清除,例如,上述实施例一中,当信息维护员点击“保存”发送第一操作请求,使得服务器将缓存空间中的更新处理后的维护对象的页面信息更新至数据库后,将缓存空间中的操作界面的标识或操作界面的标识与维护对象的身份标识的组合清除。Further, in order to prevent data congestion caused by too many combinations of the identifier of the operation interface in the shared cache space, or the identifier indicating the operation interface of the maintenance object and the identity identifier of the maintenance object, the server updates the information according to the first page, and updates the cache After the page corresponding to the logo of the operation interface in the space is updated, the logo of the operation interface can also be cleared according to the preset strategy, according to the timing cleaning strategy or the strategy of limiting the maximum number of logos, for example, timing or event-triggered or set a reference duration, if the operation interface identifier or the combination of the operation interface identifier and the identity identifier of the maintenance object in the cache space exceeds the reference duration, it will be actively cleared; Alternatively, the server may clear the identifier of the operation interface after receiving the update end request sent by the information maintainer through the operation interface on the client. For example, in the first embodiment above, when the information maintainer clicks "Save" to send the first The operation request causes the server to clear the identifier of the operation interface or the combination of the identifier of the operation interface and the identity identifier of the maintenance object in the cache space after updating the updated page information of the maintenance object in the cache space to the database.

以操作界面中的维护对象为多个图书为例,选中需要更新处理的图书后,将开启操作界面的时间点作为操作界面的标识,以操作界面的标识和该图书的身份标识的组合作为该图书的标识,将该标识定义为“key”,则在JAVA语言中,服务器可以采取如下方式获取key,String key=System.currentTimeMillis()+"_"+bookid;当服务器向客户端返回操作响应时,将key设置为隐藏字段,在服务端网页(Java Server Page,以下简称JSP)可以采取如下代码实现:Taking the maintenance objects in the operation interface as multiple books as an example, after selecting the book that needs to be updated, the time point when the operation interface is opened is used as the identification of the operation interface, and the combination of the identification of the operation interface and the identity of the book is used as the identification of the operation interface. The logo of the book, if the logo is defined as "key", then in the JAVA language, the server can obtain the key in the following way, String key=System.currentTimeMillis()+"_"+bookid; when the server returns an operation response to the client , set the key as a hidden field, and implement the following code on the server web page (Java Server Page, hereinafter referred to as JSP):

<form action="xxxx"><form action="xxxx">

<input type="hidden"name="key"value="<%key%>"><input type="hidden" name="key" value="<%key%>">

<input type="text"name="bookName"value="<%bookName%>"><input type="text" name="bookName" value="<%bookName%>">

……...

</form></form>

图2为本发明页面数据更新处理方法实施例二的流程图,本实施例的执行主体为客户端。具体的,本实施例包括如下步骤:FIG. 2 is a flow chart of Embodiment 2 of the page data update processing method of the present invention, and the execution subject of this embodiment is a client. Specifically, this embodiment includes the following steps:

201、通过操作界面向服务器发送第一操作请求,第一操作请求中包含操作界面上的第一页面更新信息和操作界面的标识。201. Send a first operation request to the server through the operation interface, where the first operation request includes update information of the first page on the operation interface and an identifier of the operation interface.

客户端对不同操作界面进行操作,通过每一个操作界面向服务器发送携带对应操作界面的第一页面更新信息和对应的操作界面的标识的第一操作请求。The client operates on different operation interfaces, and sends a first operation request carrying update information of the first page of the corresponding operation interface and an identifier of the corresponding operation interface to the server through each operation interface.

202、接收服务器发送的第一操作响应,第一操作响应中包含操作界面的标识。202. Receive a first operation response sent by the server, where the first operation response includes an identifier of the operation interface.

服务器在对第一操作请求进行响应后,向客户端发送第一操作响应,服务器接收该包含操作界面的标识的第一操作响应。After responding to the first operation request, the server sends a first operation response to the client, and the server receives the first operation response including the identifier of the operation interface.

203、从第一操作响应中解析出操作界面的标识。203. Parse the identifier of the operation interface from the first operation response.

由于客户端开启的操作界面可能有多个。因此,当客户端接收到服务器发送的第一操作响应后,对该第一操作响应进行解析,解析出操作界面的标识,根据解析出的操作界面的标识确定出具体的操作界面,并将第一操作响应的响应信息在确定出的操作界面上展示出来以供信息维护员操作。例如,若第一操作请求是在客户端对操作界面中的维护对象的第一页面进行更新处理后,点击“下一步”进入下一页以更新处理该维护对象的第二页的信息触发的,第一操作响应携带在第二页的原始页面信息,则客户端在该操作界面上展示第二页的信息以供客户端更新处理;若第一操作请求是在客户端对操作界面中的维护对象的第一页面进行更新处理后,点击“保存”触发的,则第一操作响应为信息更新处理成功的响应消息,此时可以使客户端结束该操作界面的更新维护。There may be multiple operation interfaces opened by the client. Therefore, after the client receives the first operation response sent by the server, it parses the first operation response, parses out the identifier of the operation interface, determines the specific operation interface according to the identifier of the parsed operation interface, and sends the second The response information of an operation response is displayed on the determined operation interface for the information maintainer to operate. For example, if the first operation request is triggered after the client updates the first page of the maintenance object in the operation interface, click "Next" to enter the next page to update and process the information on the second page of the maintenance object , the first operation response carries the original page information on the second page, then the client displays the information on the second page on the operation interface for the client to update and process; if the first operation request is on the client’s operation interface After the first page of the maintenance object is updated, click "Save" to trigger, then the first operation response is a response message that the information update process is successful, and at this time, the client can end the update maintenance of the operation interface.

本发明实施例提供的页面数据更新处理方法,客户端上的操作界面向服务器发送包含该操作界面上的第一页面更新信息和操作界面的标识的第一操作请求,使得服务器采用第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。本发明实施例中,由于每个操作界面有唯一的、指示该操作界面的标识,当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识的组合唯一指示,客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使信息维护人员通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。In the page data update processing method provided by the embodiment of the present invention, the operation interface on the client sends to the server a first operation request including the first page update information on the operation interface and the identification of the operation interface, so that the server uses the first page update information, and update the page corresponding to the identifier of the operation interface in the cache space. In the embodiment of the present invention, since each operation interface has a unique identifier indicating the operation interface, when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The combination of the object's identity uniquely indicates that the client caches the intermediate information generated in each step in the shared cache space with the identifier of the operation interface during the paging and step-by-step operation of maintaining the object. The data of each operation interface in the system is independent of each other, even if the information maintenance personnel operate the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

进一步的,上述实施例二中,客户端通过操作界面向服务器发送第一操作请求,第一操作请求中包含操作界面上的第一页面更新信息和操作界面的标识之前,还需从服务器处请求为该操作界面生成相应的操作界面标识,以供后续页面数据更新处理过程中的直接使用该操作界面的标识。具体的,客户端通过操作界面向服务器发送第二操作请求,第二操作请求指示需要对操作界面进行更新处理;接收服务器发送的第二操作响应,第二操作响应中携带窗口界面的标识。Further, in the second embodiment above, the client sends the first operation request to the server through the operation interface, and before the first operation request includes the update information of the first page on the operation interface and the identification of the operation interface, it needs to request from the server A corresponding operation interface identifier is generated for the operation interface, so that the identifier of the operation interface can be directly used in the subsequent page data update process. Specifically, the client sends a second operation request to the server through the operation interface, and the second operation request indicates that the operation interface needs to be updated; receives the second operation response sent by the server, and the second operation response carries the identifier of the window interface.

一般来说,客户端在第一次打开操作界面后,若该操作界面中的维护对象唯一或数量比较小,则通过该操作界面向服务器发送第二操作请求,请求对该用户界面进行更新处理;若该操作界面中的维护对象比较多时,选中需要维护的对象后再通过该操作界面向服务器发送第二操作请求,此时对该用户界面进行更新处理具体指对该用户界面中的某一个维护对象进行更新处理。服务器在接收到该第二操作请求后,发现该操作界面没有相应的标识,则为该操作界面生成操作界面的标识,并将该操作界面的标识携带在第二操作响应中发送给客户端,客户端接收该第二操作响应。Generally speaking, after the client opens the operation interface for the first time, if the maintenance object in the operation interface is unique or the number is relatively small, it will send a second operation request to the server through the operation interface, requesting to update the user interface ; If there are many maintenance objects in the operation interface, select the object to be maintained and then send a second operation request to the server through the operation interface. At this time, updating the user interface specifically refers to a certain Maintain objects for update processing. After receiving the second operation request, the server finds that the operation interface does not have a corresponding identifier, generates an identifier of the operation interface for the operation interface, and sends the identifier of the operation interface to the client in the second operation response, The client receives the second operation response.

图3为本发明页面数据更新处理方法实施例三的信令图,本实施例是以用户界面具体为浏览器的窗口且包含多个维护对象,缓存空间具体为会话层(session),对同一维护对象打开两个窗口进行页面数据更新处理为例详细阐述本发明技术方案,为描述清楚起见,将打开的两个窗口的其中之一称之为修改窗口,窗口标识为A,,另一个称之为参考窗口,窗口标识为B。具体的,本实施例包括如下步骤:Figure 3 is a signaling diagram of Embodiment 3 of the page data update processing method of the present invention. In this embodiment, the user interface is specifically a browser window and includes multiple maintenance objects, and the cache space is specifically a session layer (session). For the same The maintenance object opens two windows for page data update processing as an example to elaborate on the technical solution of the present invention. For the sake of clarity, one of the two opened windows is called the modification window, and the window is identified as A, and the other is called It is the reference window, and the window is identified as B. Specifically, this embodiment includes the following steps:

301、信息维护员开启修改窗口,选择需要更新处理的对象并点击修改;301. The information maintainer opens the modification window, selects the object to be updated and clicks modification;

302、通过修改窗口向服务器发送第二操作请求,请求需要对修改窗口的第一页进行更新处理,具体为对修改窗口中选中的维护对象的第一页进行更新处理。302. Send a second operation request to the server through the modification window, requesting that the first page of the modification window needs to be updated, specifically updating the first page of the maintenance object selected in the modification window.

303、服务器从数据库中获取第一页的最新页面信息。303. The server obtains the latest page information of the first page from the database.

304、服务器为修改窗口生成标识A,将窗口标识A、第一页的最新页面信息及对应关系存储到Session中。304. The server generates an identifier A for the modification window, and stores the window identifier A, the latest page information of the first page, and the corresponding relationship in the Session.

305、服务器向客户端发送第二操作响应,该操作响应中携带第一页的最新页面信息及修改窗口的标识A。305. The server sends a second operation response to the client, where the operation response carries the latest page information of the first page and the identifier A of the modification window.

306、客户端根据第一页的最新页面信息,在修改窗口展示第一页面信息。306. The client displays the information of the first page in the modification window according to the latest page information of the first page.

307、信息维护员开启参考窗口,选择与301中相同的维护对象并点击“修改”。307. The information maintainer opens the reference window, selects the same maintenance object as in 301, and clicks "modify".

308、通过参考窗口向服务器发送第二操作请求,请求需要对参考窗口的第一页进行更新处理,具体为对参考窗口中的选中的维护对象的第一页进行更新处理。308. Send a second operation request to the server through the reference window, requesting that the first page of the reference window needs to be updated, specifically update the first page of the selected maintenance object in the reference window.

309、服务器从数据库中获取第一页的最新页面信息。309. The server obtains the latest page information of the first page from the database.

310、服务器为参考窗口生成标识B,将窗口标识B、第一页的最新页面信息及对应关系存储到Session中。310. The server generates an identifier B for the reference window, and stores the window identifier B, the latest page information of the first page, and the corresponding relationship in the Session.

311、服务器向客户端发送第二操作响应,该操作响应中携带第一页的最新页面信息及参考窗口的标识B。311. The server sends a second operation response to the client, where the operation response carries the latest page information of the first page and the identifier B of the reference window.

312、客户端根据第一页的最新页面信息,在参考窗口展示第一页面信息。312. The client displays the first page information in the reference window according to the latest page information of the first page.

313、信息维护员对修改窗口的第一页进行修改等更新处理后,点击“下一步”,进入下一页。313. After the information maintainer modifies and updates the first page of the modification window, he clicks "Next" to enter the next page.

314、客户端通过修改窗口向服务器发送第一操作请求,该第一操作请求携带修改窗口的标识A。314. The client sends a first operation request to the server by modifying the window, where the first operation request carries the identifier A of the modification window.

315、服务器根据第一操作请求中的标识A,确定出修改窗口,对暂存在Session中的修改窗口的信息进行更新处理并从数据库中获取第二页的最新页面信息。315. The server determines the modification window according to the identifier A in the first operation request, updates the information of the modification window temporarily stored in the Session, and obtains the latest page information of the second page from the database.

该更新处理过程中,服务器根据标识A确定出信息维护员对修改窗口进行了更新处理,具体的是针对修改窗口中的哪一个维护对象,可以根据维护对象的身份ID确定出,具体的,可参见现有技术,此处不再赘述。During the update process, the server determines according to the identifier A that the information maintainer has updated the modification window. Specifically, which maintenance object in the modification window can be determined according to the identity ID of the maintenance object. Specifically, it can be Refer to the prior art, which will not be repeated here.

316、服务器向客户端发送第一操作响应,该第一操作响应中携带修改窗口的标识A及第二页的最新页面信息。316. The server sends a first operation response to the client, where the first operation response carries the identifier A of the modification window and the latest page information of the second page.

317、客户端接收到该第一操作响应后,解析出窗口标识A,确定出是修改窗口,在修改窗口展示第二页的最新信息。317. After receiving the first operation response, the client parses out the window identifier A, determines that it is a modification window, and displays the latest information on the second page in the modification window.

318、信息维护员点击参考窗口的“下一步”,进入参考窗口的下一页。318. The information maintainer clicks "Next" in the reference window to enter the next page of the reference window.

可选的,本步骤中,信息维护员也可以对参考窗口进行修改等更新处理。Optionally, in this step, the information maintainer may also update the reference window by modifying it.

319、客户端通过参考窗口向服务器发送第一操作请求,该第一操作请求携带参考窗口的标识B。319. The client sends a first operation request to the server through the reference window, where the first operation request carries the identifier B of the reference window.

320、服务器根据第一操作请求中的标识B,确定出参考窗口,对暂存在Session中的参考窗口的第一页进行更新处理并从数据库中获取第二页的最新页面信息。320. The server determines the reference window according to the identifier B in the first operation request, updates the first page of the reference window temporarily stored in the Session, and obtains the latest page information of the second page from the database.

321、服务器向客户端发送第一操作响应,该第一操作响应中携带参考窗口的标识B及第二页的最新页面信息。321. The server sends a first operation response to the client, where the first operation response carries the identifier B of the reference window and the latest page information of the second page.

322、客户端接收到该第一操作响应后,解析出窗口标识B,确定出是参考窗口,在参考窗口展示第二页的最新信息。322. After receiving the first operation response, the client parses out the window identifier B, determines that it is the reference window, and displays the latest information on the second page in the reference window.

323、信息维护员对修改窗口的第二页进行修改等更新处理处理后,点击“保存”。323. The information maintainer clicks "Save" after performing update processing such as modification on the second page of the modification window.

需要说明的是,每一个维护对象可能有多个页存储该维护对象的信息,本步骤中仅是对第二页进行更新处理为例对本发明进行详细阐述,然而,在实际的操作中,信息维护员可以对每一页进行维护,或者无规律的点击“上一页”、“下一页”在不同的页面间切换,对所有页都进行更新处理后点击“保存”。It should be noted that each maintenance object may have multiple pages storing the information of the maintenance object. In this step, the second page is only updated as an example to illustrate the present invention in detail. However, in actual operation, the information The maintainer can maintain each page, or click "previous page" and "next page" irregularly to switch between different pages, update all pages and click "save".

324、客户端向通过修改窗口向服务器发送更新处理结束请求,该更新处理结束请求携带修改窗口的标识A。324. The client sends an update processing end request to the server through the modification window, where the update processing end request carries the identifier A of the modification window.

325、服务器接收到更新处理结束请求,根据标识A,确定出是修改窗口,将Session中对应的修改窗口的信息进行更新。325. The server receives the update processing end request, determines the modification window according to the identifier A, and updates the information of the corresponding modification window in the Session.

326、服务器将更新处理后的Session中缓存的修改窗口A的所有页的信息更新至数据库。326. The server updates the information of all pages of the modified window A cached in the updated Session to the database.

327、服务器向客户端返回成功指令,该成功指令携带修改窗口的标识A。327. The server returns a successful instruction to the client, and the successful instruction carries the identifier A of the modification window.

328、客户端接收到成功指令后,解析出标识A,确定出是修改窗口,则在修改窗口展示更新处理成功的信息。328. After receiving the successful instruction, the client parses out the identifier A, determines that it is a modification window, and then displays information that the update process is successful in the modification window.

需要说明的是,上述步骤326后,服务器还可以将暂存于Session中的修改窗口的标识以及修改窗口的标识与维护对象的身份标识的组合以及相关的信息,如第一页、第二页的信息等清除;或者,在页面数据更新处理过程中,当未对修改窗口进行操作超过一定的时长后,可以主动清除Session中的修改窗口相关的信息。It should be noted that after the above step 326, the server can also temporarily store the identifier of the modification window in the Session, the combination of the identifier of the modification window and the identity identifier of the maintenance object, and related information, such as the first page and the second page Or, during the page data update process, when the modification window has not been operated for more than a certain period of time, the information related to the modification window in the Session can be actively cleared.

图4为本发明服务器实施例一的结构示意图。如图4所示,本实施例提供的服务器具体可以实现本发明任意实施例提供的应用于服务器的方法的各个步骤,具体实现过程在此不再赘述。本实施例提供的服务器具体包括:FIG. 4 is a schematic structural diagram of Embodiment 1 of the server of the present invention. As shown in FIG. 4 , the server provided in this embodiment can specifically implement each step of the method applied to the server provided in any embodiment of the present invention, and the specific implementation process will not be repeated here. The server provided in this embodiment specifically includes:

接收模块11,用于接收来自客户端上的操作界面发送的第一操作请求,第一操作请求中包含操作界面上的第一页面更新信息和操作界面的标识,可选的,操作界面为浏览器窗口或选项卡;The receiving module 11 is configured to receive the first operation request sent from the operation interface on the client, the first operation request includes the first page update information on the operation interface and the identification of the operation interface, and optionally, the operation interface is browsing browser window or tab;

处理模块12,用于根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理,可选的,缓存空间为会话层、信息记录程序或分布式内存对象缓存系统。The processing module 12 is configured to update the page corresponding to the identifier of the operation interface in the cache space according to the update information of the first page. Optionally, the cache space is a session layer, an information recording program or a distributed memory object cache system.

本发明实施例提供的服务器,服务器接收来自客户端上的操作界面发送的包含该操作界面上的第一页面更新信息和操作界面的标识的第一操作请求,根据第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。本发明实施例中,由于每个操作界面有唯一的、指示该操作界面的标识,当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识的组合唯一指示,使得客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使客户端通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。In the server provided by the embodiment of the present invention, the server receives the first operation request sent from the operation interface on the client and includes the first page update information on the operation interface and the identification of the operation interface, and according to the first page update information, cache The page corresponding to the identifier of the operation interface in the space is updated. In the embodiment of the present invention, since each operation interface has a unique identifier indicating the operation interface, when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The combined unique indication of the identity of the object enables the client to cache the intermediate information generated in each step in the shared cache space by using the identifier of the operation interface as the identifier during the paging and step-by-step operation of maintaining the object. The data of each operation interface in the space is independent of each other, even if the client operates on the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

图5为本发明服务器实施例二的结构示意图,如图5所示,本实施例的服务器在图4所示服务器的结构的基础上,还可以包括:Fig. 5 is a schematic structural diagram of the second embodiment of the server of the present invention. As shown in Fig. 5, the server of this embodiment may further include:

第一发送模块13,用于向客户端发送第一操作响应,第一操作响应中包含操作界面的标识。The first sending module 13 is configured to send a first operation response to the client, where the first operation response includes the identifier of the operation interface.

进一步的,接收模块11还用于接收来自客户端上的操作界面发送的第二操作请求,第二操作请求指示需要对操作界面进行更新处理;Further, the receiving module 11 is also configured to receive a second operation request sent from the operation interface on the client, and the second operation request indicates that the operation interface needs to be updated;

处理模块12还用于生成操作界面的标识;The processing module 12 is also used to generate the identification of the operation interface;

进一步的,再请参照图4,本实施例提供的服务器还包括第二发送模块14,用于向客户端返回第二操作响应,第二操作响应中携带窗口界面的标识。Further, please refer to FIG. 4 again, the server provided in this embodiment further includes a second sending module 14, configured to return a second operation response to the client, and the second operation response carries the identifier of the window interface.

进一步的,处理模块12,具体用于:根据操作界面的打开时间,生成操作界面的标识;或者,随机生成操作界面的标识。Further, the processing module 12 is specifically configured to: generate an operation interface identifier according to the opening time of the operation interface; or randomly generate an operation interface identifier.

进一步的,操作界面的标识采用隐藏字段的形式携带在操作响应中。Further, the identifier of the operation interface is carried in the operation response in the form of a hidden field.

进一步的,再请参照图4,本实施例提供的服务器还包括:Further, referring to FIG. 4 again, the server provided in this embodiment also includes:

清除模块15,用于根据预设策略,对操作界面的标识进行清除;或者,在接收模块11接收到来自客户端上的操作界面发送的更新处理结束请求时,对操作界面的标识进行清除。The clearing module 15 is configured to clear the identifier of the operation interface according to a preset strategy; or, when the receiving module 11 receives an update processing end request from the operation interface on the client, clear the identifier of the operation interface.

进一步的,清除模块15具体用于根据定时清理策略或者最大标识数限制策略,对操作界面的标识进行清除。Further, the clearing module 15 is specifically configured to clear the identifiers of the operation interface according to the timing clearing strategy or the maximum identifier limit strategy.

图6为本发明客户端的结构示意图。如图6所示,本实施例提供的客户端具体可以实现本发明任意实施例提供的应用于客户端的方法的各个步骤,具体实现过程在此不再赘述。本实施例提供的客户端具体包括:FIG. 6 is a schematic structural diagram of the client of the present invention. As shown in FIG. 6 , the client provided by this embodiment can specifically implement each step of the method applied to the client provided by any embodiment of the present invention, and the specific implementation process will not be repeated here. The clients provided in this embodiment specifically include:

发送模块21,用于通过操作界面向服务器发送第一操作请求,第一操作请求中包含操作界面上的第一页面更新信息和操作界面的标识;The sending module 21 is configured to send a first operation request to the server through the operation interface, where the first operation request includes the first page update information on the operation interface and the identifier of the operation interface;

接收模块22,用于接收服务器发送的第一操作响应,第一操作响应中包含操作界面的标识;The receiving module 22 is configured to receive the first operation response sent by the server, and the first operation response includes the identifier of the operation interface;

解析模块23,用于从第一操作响应中解析出操作界面的标识。The parsing module 23 is configured to parse out the identifier of the operation interface from the first operation response.

本发明实施例提供的客户端,通过向服务器发送包含该操作界面上的第一页面更新信息和操作界面的标识的第一操作请求,使得服务器采用第一页面更新信息,对缓存空间中与操作界面的标识对应的页面进行更新处理。本发明实施例中,由于每个操作界面有唯一的、指示该操作界面的标识,当操作界面中的维护对象比较多的时候,进一步的,每个维护对象可以用操作界面的标识与该维护对象的身份标识的组合唯一指示,客户端在对维护对象进行分页分步的操作过程中,将每一个步骤中产生的中间信息通过以操作界面的标识为标识缓存在共享的缓存空间,缓存空间中各个操作界面的数据相互独立,即使信息维护人员通过不同操作界面对同一维护对象进行操作,也不会发生数据覆盖的问题。In the client provided by the embodiment of the present invention, by sending the first operation request including the first page update information on the operation interface and the identification of the operation interface to the server, the server uses the first page update information to perform operations in the cache space. The page corresponding to the identifier of the interface is updated. In the embodiment of the present invention, since each operation interface has a unique identifier indicating the operation interface, when there are many maintenance objects in the operation interface, further, each maintenance object can use the identifier of the operation interface and the maintenance object. The combination of the object's identity uniquely indicates that the client caches the intermediate information generated in each step in the shared cache space with the identifier of the operation interface during the paging and step-by-step operation of maintaining the object. The data of each operation interface in the system is independent of each other, even if the information maintenance personnel operate the same maintenance object through different operation interfaces, the problem of data coverage will not occur.

进一步的,发送模块21还用于:通过操作界面向服务器发送第二操作请求,第二操作请求需要对操作界面进行更新处理;Further, the sending module 21 is also used to: send a second operation request to the server through the operation interface, and the second operation request needs to update the operation interface;

接收模块22还用于接收服务器发送的第二操作响应,第二操作响应中携带窗口界面的标识。The receiving module 22 is also configured to receive the second operation response sent by the server, and the second operation response carries the identifier of the window interface.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (22)

1. A page data updating processing method is characterized by comprising the following steps:
receiving a first operation request sent by an operation interface on a client, wherein the first operation request comprises first page update information on the operation interface and an identifier of the operation interface, and the first operation request is sent after the client updates the first page of the operation interface;
and updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information so as to update the original page information of the page corresponding to the identifier of the operation interface into the first page update information.
2. The method according to claim 1, wherein after the updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information, the method further includes:
and sending a first operation response to the client, wherein the first operation response comprises the identification of the operation interface.
3. The method according to claim 1 or 2, wherein before receiving the first operation request sent from the operation interface on the client, the method further comprises:
receiving a second operation request sent by an operation interface on the client, wherein the second operation request indicates that the operation interface needs to be updated;
generating an identifier of the operation interface;
and returning a second operation response to the client, wherein the second operation response carries the identifier of the window interface.
4. The method of claim 3, wherein the generating the identification of the operator interface comprises:
generating an identifier of the operation interface according to the opening time of the operation interface; or,
and randomly generating the identifier of the operation interface.
5. The method according to claim 2 or 4, wherein the identifier of the operation interface is carried in the operation response in the form of a hidden field.
6. The method according to any one of claims 1, 2, and 4, wherein after the updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information, the method further includes:
clearing the identifier of the operation interface according to a preset strategy; or,
and receiving an update processing ending request sent by an operation interface on the client, and clearing the identifier of the operation interface.
7. The method according to claim 6, wherein the clearing the identifier of the operation interface according to a preset policy comprises:
and clearing the identifier of the operation interface according to a timing clearing strategy or a maximum identifier number limiting strategy.
8. The method according to any one of claims 1, 2, 4 and 7, wherein the operation interface is a browser window or a tab.
9. The method of any one of claims 1, 2, 4, and 7, wherein the cache space is a session layer, an information recording program, or a distributed memory object cache system.
10. A page data updating processing method is characterized by comprising the following steps:
after updating a first page of an operation interface, sending a first operation request to a server through the operation interface, wherein the first operation request comprises first page update information on the operation interface and an identifier of the operation interface, so that the server updates original page information of a page corresponding to the identifier of the operation interface into the first page update information;
receiving a first operation response sent by the server, wherein the first operation response comprises an identifier of the operation interface;
and analyzing the identifier of the operation interface from the first operation response.
11. The method according to claim 10, wherein the updating the first page of the operation interface includes:
sending a second operation request to the server through the operation interface, wherein the second operation request needs to update the operation interface;
and receiving a second operation response sent by the server, wherein the second operation response carries the identifier of the window interface.
12. A server, comprising:
the client side comprises a receiving module and a processing module, wherein the receiving module is used for receiving a first operation request sent by an operation interface on a client side, the first operation request comprises first page update information on the operation interface and an identifier of the operation interface, and the first operation request is sent after the client side updates the first page of the operation interface;
and the processing module is used for updating the page corresponding to the identifier of the operation interface in the cache space according to the first page update information so as to update the original page information of the page corresponding to the identifier of the operation interface into the first page update information.
13. The server according to claim 12, wherein the server further comprises:
and the first sending module is used for sending a first operation response to the client, wherein the first operation response comprises the identifier of the operation interface.
14. The server according to claim 12 or 13, wherein the receiving module is further configured to:
receiving a second operation request sent by an operation interface on the client, wherein the second operation request indicates that the operation interface needs to be updated;
the processing module is further used for generating an identifier of the operation interface;
the server further comprises a second sending module, which is used for returning a second operation response to the client, wherein the second operation response carries the identifier of the window interface.
15. The server according to claim 14, wherein the processing module is specifically configured to:
generating an identifier of the operation interface according to the opening time of the operation interface; or,
and randomly generating the identifier of the operation interface.
16. The server according to claim 13 or 15, wherein the identifier of the operation interface is carried in the operation response in a hidden field.
17. The server according to any one of claims 12, 13, and 15, further comprising:
the clearing module is used for clearing the identifier of the operation interface according to a preset strategy; or when the receiving module receives an update processing ending request sent by an operation interface on the client, the identifier of the operation interface is cleared.
18. The server according to claim 17, wherein the purge module is specifically configured to:
and clearing the identifier of the operation interface according to a timing clearing strategy or a maximum identifier number limiting strategy.
19. The server according to any one of claims 12, 13, 15 and 18, wherein the operation interface is a browser window or a tab.
20. The server according to any one of claims 12, 13, 15, and 18, wherein the cache space is a session layer, an information recording program, or a distributed memory object cache system.
21. A client, comprising:
the sending module is used for sending a first operation request to a server through an operation interface after updating a first page of the operation interface, wherein the first operation request comprises first page update information on the operation interface and an identifier of the operation interface, so that the server updates original page information of a page corresponding to the identifier of the operation interface into the first page update information;
a receiving module, configured to receive a first operation response sent by the server, where the first operation response includes an identifier of the operation interface;
and the analysis module is used for analyzing the identifier of the operation interface from the first operation response.
22. The client of claim 21, wherein the sending module is configured to:
sending a second operation request to the server through an operation interface, wherein the second operation request needs to update the operation interface;
the receiving module is further configured to receive a second operation response sent by the server, where the second operation response carries an identifier of the window interface.
CN201310134335.8A 2013-04-17 2013-04-17 Page data renewal processing method, client and server Active CN103198142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310134335.8A CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310134335.8A CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Publications (2)

Publication Number Publication Date
CN103198142A CN103198142A (en) 2013-07-10
CN103198142B true CN103198142B (en) 2018-01-02

Family

ID=48720699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310134335.8A Active CN103198142B (en) 2013-04-17 2013-04-17 Page data renewal processing method, client and server

Country Status (1)

Country Link
CN (1) CN103198142B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704106B (en) * 2014-11-27 2019-11-12 腾讯科技(深圳)有限公司 A kind of visualization IVR implementation method and mobile terminal
CN104378244B (en) * 2014-12-08 2018-10-12 上海斐讯数据通信技术有限公司 Exchanger management system based on web page and method
CN105847217B (en) * 2015-01-12 2019-09-06 阿里巴巴集团控股有限公司 Method and system for concurrent multi-service sessions
CN106155920B (en) * 2015-03-30 2019-05-07 阿里巴巴集团控股有限公司 Data managing method and device
CN106936935B (en) * 2017-04-28 2021-02-23 新华三技术有限公司 Remote control method and device
WO2018232758A1 (en) * 2017-06-23 2018-12-27 华为技术有限公司 RCS communication method and device
CN107766155A (en) * 2017-10-23 2018-03-06 北京京东尚科信息技术有限公司 Object processing method and system
CN112817977A (en) * 2021-01-28 2021-05-18 山东浪潮通软信息科技有限公司 Method for displaying and managing SaaS application by mobile terminal
CN114327707A (en) * 2021-12-20 2022-04-12 凌云光技术股份有限公司 A method of refreshing the user interface
CN114745305B (en) * 2022-06-15 2022-09-09 中邮消费金融有限公司 Dynamic interaction method and system based on user behavior recognition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101296255A (en) * 2008-06-30 2008-10-29 腾讯科技(深圳)有限公司 Web page browsing method, system, proxy server and mobile phone browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364461A (en) * 2011-06-30 2012-02-29 广州市动景计算机科技有限公司 Web page content data acquisition method and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178716A (en) * 2007-11-19 2008-05-14 优视动景(北京)技术服务有限公司 Method of micro-browsers processing JavaScript and micro-browsers thereof
CN101296255A (en) * 2008-06-30 2008-10-29 腾讯科技(深圳)有限公司 Web page browsing method, system, proxy server and mobile phone browser
CN102622348A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Method and device enabling plurality of windows to perform analytical display on network page simultaneously

Also Published As

Publication number Publication date
CN103198142A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
CN103198142B (en) Page data renewal processing method, client and server
JP6410280B2 (en) Website access method, apparatus, and website system
US9313100B1 (en) Remote browsing session management
US9292467B2 (en) Mobile resource accelerator
US20170272499A1 (en) Method and device for loading webpage
US20130054675A1 (en) Remote browsing session management
US20130080421A1 (en) Historical browsing session management
US20130080576A1 (en) Historical browsing session management
US9491113B2 (en) Managing network connections for processing network resources
US20160239274A1 (en) Generating command line interface using application programming interface specification
CN113382282B (en) Page resource access method and device, electronic equipment and storage medium
CN105657000A (en) Message transmission method and device
US20160080262A1 (en) Domain name collaboration service using domain name dependency server
US20140188982A1 (en) Virtual Desktop Infrastructure (VDI) Login Acceleration
US12423365B2 (en) Facilitating inter-system data transfer with serialized data objects
CN113055503B (en) IPv6 webpage link processing method, device, equipment and readable storage medium
CN110674435A (en) Page access method, server, terminal, electronic equipment and readable storage medium
CN111914200A (en) Browser tab state synchronization method, device, equipment and storage medium
CN109885347A (en) A kind of acquisition methods of configuration data, device and terminal, system, storage medium
CN108460042B (en) Page display method, related equipment and system
JP2007219619A (en) Information management program, device, and method
JP2010079523A (en) Method of sharing session data
WO2017000669A1 (en) Centralised management control method, apparatus, and related device for domain name resource record caching
CN110944037B (en) Method, computer device and storage medium for client cache change configuration
JP5945367B2 (en) Method and system for communicating between web pages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant