METHOD, SYSTEM, AND COMPUTER DEVICE FOR GENERATING PORTAL PAGES
20230244853 ยท 2023-08-03
Assignee
Inventors
Cpc classification
G06F40/149
PHYSICS
G06F40/143
PHYSICS
G06F16/972
PHYSICS
International classification
G06F40/149
PHYSICS
G06F16/958
PHYSICS
Abstract
A method, system and computer device for generating portal pages, including: registering all portal component systems to a portal system portlet library, enabling the portal system to obtain portal portlets from the portlet library, creating a portal page through the portal system, configuring the required portlet system for a new portal page from the portal portlet library, and save name information, page ID identity information and configured portal portlet system information of the portal page into a database; at the same time, the portal system will transfer the newly created portal page information to an IFrame HTML tag contained in the portal system's main page. The IFrame will present the newly created page and load the configured portlets, realizes the partial refresh of a single page of the portal system SPA, save server resources and broadband resources, improve page response speed, and obtain a better user experience.
Claims
1. A method for generating portal pages, comprising: (1) registering all portal portlets of a portal system in a portal portlet library first, enabling the portal system to obtain portal portlet information from the portal portlet library and managing the portal portlet system; (2) creating a new portal page through the portal system dynamically and virtually, configuring required portal portlets for the new portal page from the portal portlet library, saving name information, page ID identity information and configured portal portlets information of the new portal page into a database; (3) passing the new portal page ID identity information to an IFrame HTML tag contained in a main page of the portal system; rendering the new portal page through the IFrame HTML tag, and loading the configured portal portlets on the new portal page; (4) there is no physical corresponding page URL in the portal system file directory for the new portal page.
2. The method of claim 1, further comprising: developing a portal portlet based on the programming model of synchronous refresh technology.
3. The method of claim 1, further comprising: developing a portal portlet system based on a non-script language such as Java or C #.
4. The method of claim 1, further comprising: closing the portal portlet system of the portal page according to personal needs; reopening the closed portal portlet system of the portal page; personalizing the presentation of the portle system of the portal page; loading the portal portles in the generated portal page according to the new personalized settings.
5. The method of claim 1, further comprising: after logining the portal page, setting a layout of the portal portlet system on the portal page according to personal needs, setting a single-column display mode of each row or multi-column display mode of each row or three columns per row; displaying the portal portlet system on the generated portal page according to display mode.
6. A system for generating portal pages, comprising: portal portlet system library management module, portal page creation module, portal page presentation module, portal portlet system management module; wherein the portal portlet system library management module uniformly manages registration of portlets into a portlet library and removal of portlets from the portlet library of a portal system; wherein the portal page creation module sets name information and page ID identity information of a portal page, configures portal portlet system information required by the portal page from the portal portlet system library, and saves it into a database; wherein the portal page presentation module receives the portal page information transmitted by the portal system; the portal page is dynamically generated, and there is no actual corresponding page URL in the portal system file directory, the portal system calls an IFrame HTML tag contained in a main page, renders the portal page in the IFrame tag, and loads configured portal portlets for the portal page; wherein the portal page is dynamically and virtually generated, and there is no actual corresponding page URL in the portal system file directory.
7. The system of claim 6, further comprising: said portal portlet system management module manage portal portlet system according to personal needs, comprising: closing a certain portal portlet of the portal page, reopening a closed portal portlet system of the portal page; personalizing the presentation of the portlet system of the portal page; loading the required portal portlet system on the portal page according to personalized settings.
8. The system of claim 6, further comprising: the portal page presentation module including setting layout of the portal portlet system on the portal page via single-column display mode or multi-column display mode; according to the display mode, the portal portlet system is automatically arranged and displayed on the portal page.
9. The system of claim 6, further comprising: developing the portal portlet system based on a programming model of synchronous refresh technology;
10. A computer device, including a memory, a processor and a computer program stored on the memory and operable on the processor, characterized in that the processor is used to perform the steps of the method described in any one of claims 1 to 5.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0029] For better explanation of the technical solutions of the embodiments of the invention, the following is a brief description of the drawings needed to describe the embodiments. It is obvious that the drawings described below are only embodiments of the invention, and for those skilled in the art, other drawings can be obtained from these drawings without creative work. The invention can also be implemented in other ways different from those described herein. Therefore, the scope of protection of the invention is not limited by the specific embodiments disclosed below.
[0030]
[0031]
[0032]
DETAILED DESCRIPTION OF EMBODIMENTS
[0033] The embodiments of the invention are described in detail below in combination with the attached drawings.
[0034] Now refer to
[0035] First, register all developed portal portlets into the portal portlets system library, which stores the portal portlets and the portal portlets name ID and other related information. The portal system obtains the portal portlets information from the portlets library and manages the portal portlets system; After logging into the portal system, the administrator creates a new portal page through the portal system page creation tool, configures the required portal portlets system for the new portal page from the portal system portlets library, and saves the name information of the portal page, page ID identity information, and configured portal portlets system information into the database; The portal system passes the newly created portal page information to the IFrame inner frame HTML tag contained in the main page of the portal system. The IFrame inner frame tag renders the newly created page, and loads the configured portal portlets system on the newly created page.
[0036] The technical features of the IFrame HTML tag can not only achieve the effect of local refresh, but also make the portal system unnecessary to modify the WEB content of the portal portlets one by one, so as to achieve the effect of redirecting HTTP requests to XMLHTTP requests to achieve local refresh.
[0037] The portal system adopts the SPA single page application, and the main page is the single page. The width, height and margin of the IFrame tag set on the main page make the IFrame occupy most of the space of the main page, 85% for the PC side, and 100% for the mobile phone side. It is able to dynamically adjust the layout of the portal page. The refresh of the portlet system does not cause a postback of the main page, and realizes partial refresh.
[0038] IFrame can access the CSS, Javascript and other parent page file resources in the parent page through the parent page to share the parent page resources; For the independent style sheet and script file of the independently developed portlet system, the parent page of the style sheet and script file can be completely kept undisturbed.
[0039] When the portal portlet is no longer used by the portal system, it will be removed from the portal portlet library. When the portal portlet needs to be updated, the updated portal portlet outside the portal system will replace the original portlet in the portal portlet library. The newly developed portal portlet system can be managed and used by the portal system after being registered through the portlet library.
[0040] There are no uniform requirements for the technical architecture of the portal portlet system, including the portal portlet system developed based on the synchronous refresh technology programming model, or its back-end is the portal portlet system developed based on Java or C # and other non-script languages.
[0041] After ordinary users log in to a portal page, they can close a portal portlet system of the page according to their personal needs, or reopen the closed portal portlet system of the page, personalize the presentation of the portlet system of the portal page, and the portal system loads the portal portlet system required by users in the generated portal page according to the new personalized settings;
[0042] After ordinary users login to the portal page, they can set the layout of the portal portlet system on the page according to their personal needs, and set a single-column display mode of each row or multi-column display mode of each row or three columns per row. The portal system automatically arranges and displays the portal portlet system on the generated portal page according to the display mode.
[0043]
[0044] Among them, the portal portlet system library management module is used to uniformly manage the registration of portlets into portlet library and removal of portlets from portlet library of the portal system; The portal page creation module sets the name information and page ID identity information of the portal page, configures the portal portlet system information required by the portal page from the portal portlet library, and saves it into a database; The portal page presentation module receives the portal page information transmitted by the portal system. The portal page is dynamically generated, and there is no actual corresponding page URL in the portal system file directory. It calls the IFrame HTML tag contained in the main page, renders the portal page in the IFrame tag, and loads the configured portal portlet system for the portal page; The portal portlet system management module includes that ordinary users can manage the page portal portlet system according to their personal needs, including closing a certain portal portlet of the page, or reopening a closed portal portlet system of the page, personalizing the presentation of the portlet system of the portal page, and loading the required portal portlet system on the portal page according to the user's personalized settings.
[0045] The portal page presentation module also includes setting the layout of the portal portlet system on the page, setting the single-column display or multi-column display mode, and automatically displaying the portal portlet system on the generated portal page according to the display mode.
[0046] The portal portlet system includes: the portal portlet system developed based on the programming model of synchronous refresh technology; or the portal portlet system based on JAVA and JSP page technology at the back end and XMLHTTP at the front end to achieve partial refresh; or a portal portlet system based on C # and ASPX page technology at the back end and XMLHTTP at the front end to achieve partial refresh.
[0047]
[0048] According to the computer device 1 of the present invention, the processor 14 contained therein is used to execute the steps of the method for generating a portal page in the above embodiment, to execute modules of a system for generating a portal page in the above embodiment, so the computer device 1 can realize all the beneficial effects of the method, system, and computer device for generating portal pages.
[0049] According to the present invention, the computer device 1 contains a readable storage medium on which a computer program is stored. When the computer program is executed by the processor, the steps of any method in the above technical solution are implemented.
[0050] According to the computer-readable storage medium of the present invention, when the computer program stored on it is executed by the processor, the steps of the method for generating a portal page in the above embodiment are realized, the modules of the system for generating a portal page in the above embodiment are realized, so the computer-readable storage medium can realize all the beneficial effects of the method for generating the portal page.
[0051] The above is a preferred embodiment of the invention, and is not intended to limit the scope of protection of the invention.