IP Library › Granted Patent US 8,126,901
Granted Patent B2
US 8,126,901 · App. 11/863,860 · Granted Feb 28, 2012

Method and apparatus for generating a dynamic web page

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,126,901
App. No.
11/863,860
Granted
Feb 28, 2012
Kind
B2
Abstract

A method and apparatus are provided for generating a dynamic web page. A structured data context is generated based on the result of a business logic process performed in response to a request from a browser, and a template associated with the request is loaded. The structured data context includes at least one dynamic data item for the dynamic web page. The template is able to be browsed by the browser and contains associated information that corresponds to the at least one dynamic data item of the structured data context. The at least one dynamic data item of the structured data context is merged into the template so as to produce the dynamic web page.

Claims (44)

1. A computer-implemented method for generating a dynamic web page, the method comprising the steps of:

generating, by a processor, a structured data context based on a result of a business logic process performed in response to a request from a browser, the structured data context defining at least one of a given data structure and a given data class, the structured data context including at least one dynamic data item for the dynamic web page, and the structured data context being separate and distinct from the dynamic web page and being generated prior to generating the dynamic web page;

loading a template in response to the request, the template being able to be browsed by the browser and containing associated information that corresponds to the at least one dynamic data item of the structured data context, the associated information being recorded in an attribute of a tag in the template, and the template being separate and distinct from the structured data context; and

merging the at least one dynamic data item of the structured data context into the template so as to produce the dynamic web page,

wherein the merging step comprises:

traversing each dynamic data item of the structured data context that was generated; and

placing each traversed dynamic data item into a corresponding location in the template if the associated information that corresponds to the dynamic data item is found in the template, the dynamic data item being placed within the template without replacing non-content data in the template.

2. The method according to claim 1 , wherein the merging step further comprises reporting error information when, after the traversing is completed, there is content to be displayed in the template that is not replaced by the at least one dynamic data item.

3. The method according to claim 1 , further comprising the step of checking syntax of the template before the merging step.

4. The method according to claim 1 , further comprising the step of:

after the merging step, checking syntax of the dynamic web page that is produced.

5. The method according to claim 1 ,

wherein the template is represented by a markup language, and

the associated information contained in the template that corresponds to the at least one dynamic data item of the structured data context is recorded in an attribute of a tag in the template.

6. The method according to claim 5 , wherein the template is represented by HTML, XML, or WML.

7. The method according to claim 6 , wherein the associated information contained in the template that corresponds to the at least one dynamic data item of the structured data context is recorded in an ID attribute of the tag in the template.

8. A non-transitory computer-readable medium encoded with a program for generating a dynamic web page, the program comprising instructions for performing the steps of:

generating a structured data context based on a result of a business logic process performed in response to a request from a browser, the structured data context defining at least one of a given data structure and a given data class, the structured data context including at least one dynamic data item for the dynamic web page, and the structured data context being separate and distinct from the dynamic web page and being generated prior to generating the dynamic web page;

loading a template in response to the request, the template being able to be browsed by the browser and containing associated information that corresponds to the at least one dynamic data item of the structured data context, the associated information being recorded in an attribute of a tag in the template, and the template being separate and distinct from the structured data context; and

merging the at least one dynamic data item of the structured data context into the template so as to produce the dynamic web page,

wherein the merging step comprises:

traversing each dynamic data item of the structured data context that was generated; and

placing each traversed dynamic data item into a corresponding location in the template if the associated information that corresponds to the dynamic data item is found in the template, the dynamic data item being placed within the template without replacing non-content data in the template.

9. The non-transitory computer-readable medium according to claim 8 , wherein the merging step further comprises reporting error information when, after the traversing is completed, there is content to be displayed in the template that is not replaced by the at least one dynamic data item.

10. The non-transitory computer-readable medium according to claim 8 , wherein the program further comprises instructions for performing the step of checking syntax of the template before the merging step.

11. The non-transitory computer-readable medium according to claim 8 ,

wherein the template is represented by a markup language, and

the associated information contained in the template that corresponds to the at least one dynamic data item of the structured data context is recorded in an ID attribute of a tag in the template.

12. An apparatus for generating a dynamic web page, the apparatus comprising:

a memory;

a processor communicatively coupled to the memory;

a business logic processing unit communicatively coupled to the memory and the processor, the business logic processing unit being configured to generate a structured data context based on a result of a business logic process performed in response to a request from a browser, the structured data context defining at least one of a given data structure and a given data class, the structured data context including at least one dynamic data item for the dynamic web page, and the structured data context being separate and distinct from the dynamic web page and being generated prior to generating the dynamic web page;

a template loading unit configured to load a template in response to the request, the template being able to be browsed by the browser and containing associated information that corresponds to the at least one dynamic data item of the structured data context, the associated information being recorded in an attribute of a tag in the template, the template being separate and distinct from the structured data context, and at least the one dynamic data item being organized within the structured data context independent of an organization structure in the template; and

a merging unit configured to merge the at least one dynamic data item of the structured data context into the template so as to produce the dynamic web page,

wherein the merging unit is also configured to:

merge the at least one dynamic data item by traversing each dynamic data item of the structured data context that was generated; and

place each traversed dynamic data item into a corresponding location in the template if the associated information that corresponds to the dynamic data item is found in the template, the dynamic data item being placed within the template without replacing non-content data in the template.

13. The apparatus according to claim 12 , wherein the merging unit comprises an error reporting unit configured to report error information when, after the traversing by the traversing unit is completed, there is content to be displayed in the template that is not replaced by the at least one dynamic data item.

14. The apparatus according to claim 12 ,

wherein the template is represented by a markup language, and

the associated information contained in the template that corresponds to the at least one dynamic data item of the structured data context is recorded in an ID attribute of a tag in the template.

15. The method according to claim 1 , wherein the merging step further comprises reporting error information if the associated information that corresponds to the dynamic data item is not found in the template.

16. The non-transitory computer-readable medium according to claim 8 , wherein the merging step further comprises reporting error information if the associated information that corresponds to the dynamic data item is not found in the template.

17. The apparatus according to claim 12 , wherein the merging unit is also configured to report error information if the associated information that corresponds to the dynamic data item is not found in the template.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 28, 2007
From: SHAN, JIAN HONG; YU, SHAO YANG; LU, ZHONG YAN
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 019895/0749 →
Priority Claims (1)
CN 2006 1 0135774 · Oct 19, 2006 · national
Continuity (1)
Related Publication 20080098028A1 · Apr 24, 2008