CN106990959A - A kind of method that many JavaWeb of unification apply public page fragments - Google Patents
A kind of method that many JavaWeb of unification apply public page fragments Download PDFInfo
- Publication number
- CN106990959A CN106990959A CN201710165827.1A CN201710165827A CN106990959A CN 106990959 A CN106990959 A CN 106990959A CN 201710165827 A CN201710165827 A CN 201710165827A CN 106990959 A CN106990959 A CN 106990959A
- Authority
- CN
- China
- Prior art keywords
- page fragments
- public
- public page
- fragments
- java web
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000012634 fragment Substances 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 230000003068 static effect Effects 0.000 claims abstract description 4
- 235000014510 cooky Nutrition 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 4
- 230000018109 developmental process Effects 0.000 abstract description 4
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention discloses the method that a kind of many Java Web of unification apply public page fragments, belong to Java Web application and developments field.Public page fragments are stored in common application by this method, and public page fragments are inserted into the business page by the technology provided using Java Web applications by network request, reach the purpose of unified management and the public page fragments of O&M;Interaction includes browser, service application and common application, public page fragments are saved in common application, regard related JavaScript, CSS, Image static resource of public fragment and page fragments as an entirety, uniformly it is stored in common application, to guarantee to be managed collectively public page fragments.The present invention, by the prior art fully applied using Java Web, solves management and the O&M problem of public page fragments on the premise of ensureing Consumer's Experience, not additionally introducing development amount.
Description
Technical field
The present invention relates to Java Web application and developments field, specifically a kind of many Java Web application public pages of unification
The method of dough sheet section.
Background technology
As the complexity of information system becomes more and more higher, the modularization deployment of information system has become general trend of events institute
Become.But during modularization is disposed, the problem of including public page fragments in each component is often faced, common way has
Two kinds:One is, by embedded IFrame elements, public page fragments to be loaded into the page, and the advantage of this method is using letter
Single, inferior position is due to that IFrame height can not be adaptive, inconsistent with the homepage load time, in fact it could happen that the page bounces,
Cause Consumer's Experience poor;Two be that, by quoting public JavaScript, dynamic generation page fragments, the code of this method is answered
Miscellaneous degree is higher, is also easily caused the page and flashes, Consumer's Experience is not good;Three be respectively to retain a public page fragments in each component
Code, this method is easier to implement in the starting stage of application, but the maintenance cost in later stage is higher, if public page dough sheet
Duan Fasheng is changed, it is necessary to change many parts.
The content of the invention
The technical assignment of the present invention is using the public page for above weak point there is provided a kind of many Java Web of unification
The method of fragment, on the premise of ensureing Consumer's Experience, not additionally introducing development amount, by fully being answered using Java Web
Prior art, solves management and the O&M problem of public page fragments.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method that many Java Web of unification apply public page fragments, public page fragments are stored in common application,
Public page fragments are inserted into the business page by the technology provided using Java Web applications by network request, reach unification
Management and the purpose of the public page fragments of O&M;
Interaction includes saving public page fragments in browser, service application and common application, common application, will be public
Related JavaScript, CSS, Image static resource of fragment and page fragments regard an entirety as, are uniformly stored in public answer
In, to guarantee to be managed collectively public page fragments;
When the page that browse request Java Web are applied, the request is called first request, and application server is responding the page
When, new network request is sent by the Java Web applications in store public page fragments, the request is called secondary request,
After the content of public page fragments is successfully returned, insert it into the appropriate location of first request and return to browser.
It is preferred that, the function of public page fragments has display login user information and display selection current language, if with
Family is not logged in, then needs to show login button, be used as the entrance of User logs in.
It is preferred that, because the client for asking public page fragments is the service application of server end, and non-browser, institute
To detect that the code whether user logs in is performed in browser end, and without using service end execution script.
It is preferred that, login banner is stored in Cookie after User logs in success, is easy to public page fragments to judge to use
Whether family logs in.
It is preferred that, selected in public page fragments after current language, working as user is shared in multiple Java Web applications
Preceding selection, the selection linguistic function of public page fragments is determined after language, is saved it in Cookie, and it is applied so as to multiple
Data sharing.
The present invention a kind of many Java Web of unification using public page fragments method compared to the prior art, with
Lower beneficial effect:
On the basis for ensureing Consumer's Experience, reduction exploitation and O&M difficulty, the multiple Java Web applications of unified management are realized
The target of public page fragments;The technology fully provided using Java Web applications, is ensureing that additional code need not be added
On the premise of, solve the problems, such as management and the O&M of public page fragments;
The reality of page fragments is dynamically rendered with other such as IFrame nested pages, duplication page fragments code, JavaScript
Existing mode is compared, and neither loses the Consumer's Experience of Web applications, but can the unified public page exploitation and O&M, reduce and manage into
This.
Embodiment
With reference to specific embodiment, the invention will be further described.
Public page fragments are stored in common application by a kind of method that many Java Web of unification apply public page fragments
In, public page fragments are inserted into the business page by the technology provided using Java Web applications by network request, are reached
Unified management and the purpose of the public page fragments of O&M;
Interaction includes saving public page fragments in browser, service application and common application, common application, will be public
Related JavaScript, CSS, Image static resource of fragment and page fragments regard an entirety as, are uniformly stored in public answer
In, to guarantee to be managed collectively public page fragments;The function of public page fragments has display login user information and aobvious
Show selection current language, if user is not logged in, needs to show login button, be used as the entrance of User logs in.
When the page that browse request Java Web are applied, the request is called first request, and application server should in response
During the page, new network request is sent by the Java Web applications in store public page fragments, the request is called secondary
Request, after the content of public page fragments is successfully returned, inserts it into the appropriate location of first request and returns to and browse
Device.
Because the client for asking public page fragments is the service application of server end, and non-browser, so detection
The code whether user logs in is performed in browser end, and without using service end execution script.
Login banner is stored in Cookie after User logs in success, is easy to public page fragments to judge whether user steps on
Record.
Selected in public page fragments after current language, the current selection of user shared in multiple Java Web applications,
The selection linguistic function of public page fragments is determined after language, is saved it in Cookie, to be shared between multiple applications
Data.
Illustrate technical principle by taking two applications as an example below, specific steps are described as follows:
1), browse request service application the page;
2), service application initiate secondary request to common application, ask public page fragments;
3), common application public page fragments are returned into service application;
4), service application by this application page and public page fragments combination after content return to browser, browser is rendered
The page is presented to user.
By embodiment above, the those skilled in the art can readily realize the present invention.But should
Work as understanding, the present invention is not limited to above-mentioned embodiment.On the basis of disclosed embodiment, the technical field
Technical staff can be combined different technical characteristics, so as to realize different technical schemes.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.
Claims (5)
1. a kind of method that many Java Web of unification apply public page fragments, it is characterised in that be stored in public page fragments
In common application, public page fragments are inserted into the business page by the technology provided using Java Web applications by network request
In, reach the purpose of unified management and the public page fragments of O&M;
Interaction includes saving public page fragments in browser, service application and common application, common application, will be public
Related JavaScript, CSS, Image static resource of fragment and page fragments regard an entirety as, are uniformly stored in public answer
In, to guarantee to be managed collectively public page fragments;
When the page that browse request Java Web are applied, the request is called first request, and application server is responding the page
When, new network request is sent by the Java Web applications in store public page fragments, the request is called secondary request,
After the content of public page fragments is successfully returned, insert it into the appropriate location of first request and return to browser.
2. the method that many Java Web of a kind of unification according to claim 1 apply public page fragments, it is characterised in that
The function of public page fragments has display login user information and display selection current language, if user is not logged in, needs
Login button is shown, the entrance of User logs in is used as.
3. the method that many Java Web of a kind of unification according to claim 1 apply public page fragments, it is characterised in that
The code whether detection user logs in is performed in browser end, and without using service end execution script.
4. the method that many Java Web of a kind of unification according to claim 1 apply public page fragments, it is characterised in that
Login banner is stored in Cookie after User logs in success, is easy to public page fragments to judge whether user logs in.
5. the method that many Java Web of a kind of unification according to claim 1 apply public page fragments, it is characterised in that
Selected in public page fragments after current language, the current selection of user, the public page are shared in multiple Java Web applications
The selection linguistic function of fragment is determined after language, is saved it in Cookie, so as to the data sharing of multiple applications.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710165827.1A CN106990959A (en) | 2017-03-20 | 2017-03-20 | A kind of method that many JavaWeb of unification apply public page fragments |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710165827.1A CN106990959A (en) | 2017-03-20 | 2017-03-20 | A kind of method that many JavaWeb of unification apply public page fragments |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106990959A true CN106990959A (en) | 2017-07-28 |
Family
ID=59412844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710165827.1A Pending CN106990959A (en) | 2017-03-20 | 2017-03-20 | A kind of method that many JavaWeb of unification apply public page fragments |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106990959A (en) |
-
2017
- 2017-03-20 CN CN201710165827.1A patent/CN106990959A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11032388B2 (en) | Methods for prerendering and methods for managing and configuring prerendering operations | |
CN104426925B (en) | Web page resources acquisition methods and device | |
US10356156B2 (en) | Method and device for loading webpage | |
US9923977B2 (en) | Transferring cookie data to another domain | |
CN104112002B (en) | A kind of methods, devices and systems of list adaptation | |
US10296558B1 (en) | Remote generation of composite content pages | |
US9479564B2 (en) | Browsing session metric creation | |
US20130080421A1 (en) | Historical browsing session management | |
US20130080420A1 (en) | Historical browsing session management | |
CN109032797A (en) | For providing the method and apparatus of web page access | |
US7090749B2 (en) | Method and apparatus for simulating application workloads on an e-business application server | |
CN107229633A (en) | Static page generation method, Web access method and device | |
CN103051646A (en) | Information synchronization method and device | |
CN105024975A (en) | Account number login method, device and system | |
US10057320B2 (en) | Offline browsing session management | |
CN103412890A (en) | Webpage loading method and device | |
CN109542427A (en) | A kind of system customization method, apparatus and electronic equipment and storage medium | |
WO2015175324A1 (en) | Active summaries in user interfaces to collaboration services | |
CN110311989A (en) | A kind of gray scale dissemination method, device, storage medium, equipment and system | |
CN108132991A (en) | A kind of H5 pages loading method and system | |
US20100042742A1 (en) | On-deck detection for a web site | |
CN106060004A (en) | Database access method and database agent node | |
CN104580380B (en) | The synchronous method and system of logging state | |
CN110191186A (en) | CDN server dispatching method, equipment and computer readable storage medium | |
CN106487918A (en) | A kind of MOOC system based on edX platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170728 |