Method and system for supporting dynamic document content expressed in a component-level language
First Claim
1. A computer-implemented method for parsing by enabling scripts to be expressed in a language which creates, configures, and connects separately developed software objects to perform the scripted tasks, comprising the steps of:
- loading a document having a structure comprised of script and non-script components, where the script is a general-purpose nonprocedural software-component language whose base syntax is the same as the non-script components;
identifying the script components;
delineating the script components;
handing the script components to an interpreter;
returning an object from the interpreter corresponding to each script component;
replacing script components in the document structure with the object returned from the interpreter; and
updating the document structure. 2.The method of claim 1, wherein the scripts are Bean Server Page (BSP) scripts.
1 Assignment
0 Petitions
Accused Products
Abstract
This invention provides a computer-method for parsing by enabling scripts to be expressed in a language which is syntax-compatible with the document surrounding them. A document is loaded having script and non-script components. Script components are identified and delineated, and are then passed to an interpreter, which returns an object corresponding to each script component. Then, script elements in the original document are replaced with the last returned object from the interpreter. If the returned object is a suitable Document Object Model (DOM) Node, it replaces the script element in the document structure. If the object is not a DOM node, the server invokes its string conversion method to obtain a textual representation, and replaces the script element with that text. After all BML markup block elements in the document have been processed, the altered document is delivered to the client.
-
Citations
13 Claims
-
1. A computer-implemented method for parsing by enabling scripts to be expressed in a language which creates, configures, and connects separately developed software objects to perform the scripted tasks, comprising the steps of:
-
loading a document having a structure comprised of script and non-script components, where the script is a general-purpose nonprocedural software-component language whose base syntax is the same as the non-script components;
identifying the script components;
delineating the script components;
handing the script components to an interpreter;
returning an object from the interpreter corresponding to each script component;
replacing script components in the document structure with the object returned from the interpreter; and
updating the document structure. 2.The method of claim 1, wherein the scripts are Bean Server Page (BSP) scripts. - View Dependent Claims (5, 6)
-
- 2. The method of claim 2, wherein the interpreter processes the BSP scripts as blocks of Bean Markup Language (BML) code.
-
7. A computer program product comprising:
-
a computer usable medium having computer readable program code embodied in the medium for parsing by enabling scripts to be expressed in a language which creates, configures, and connects separately developed software modules (objects) to perform the scripted tasks, the computer program product having;
first computer program code for loading a document having a structure comprised of script and non-script components, where the script is a general-purpose nonprocedural software-component language whose base syntax is the same as the non-script components;
second computer program code for identifying the script components;
third computer program code for delineating the script components;
fourth computer program code for handing the script components to an interpreter;
fifth computer program code for returning an object from the interpreter corresponding to each script component;
sixth computer program code for replacing script components in the document structure with the object returned from the interpreter; and
seventh computer program code for updating the document structure under direct script control.
-
- 8. The computer program product as recited in claim 8, wherein the second computer program code identifies script components by means of structural delineation.
-
10. A system for processing a servelet which can be utilized in conjunction with a web server to give it the ability to recognize and process Bean Server Page (BSP) files, said system comprising:
-
a BSP processor;
an Extensible Markup Language (XML) serializer;
means for recognizing a HyperTest Transfer Protocol (HTTP) request;
means for parsing the HTTP request;
means for retrieving a specified source file associated with the HTTP request from a storage repository; and
means for passing the source file through said BSP processor and returning a resulting data stream from said XML serializer to a web server and a client.
-
- 11. The system as recited in claim 11, wherein said means for parsing is a HyperText Markup Language (HTML) parser.
Specification