IP Library Granted Patent US 7,401,325
Granted Patent B2
US 7,401,325 · App. 10/701,954 · Granted Jul 15, 2008

Method and apparatus for a configurable Java Server pages processing framework

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 7,401,325
App. No.
10/701,954
Granted
Jul 15, 2008
Kind
B2
Abstract

A method, apparatus, and computer instructions for a configurable JAVASERVER pages processing framework to process JAVASERVER pages (JSP). A JSP document or page is translated into a document object model (DOM) object that encapsulates elements of the JSP. The syntax of the JSP is validated by a JSP translator with built-in classes and errors are returned if necessary. A JSP visitor configuration file, which defines user configured classes and sequence of execution, is used by the JSP translator to invoke methods of user-defined classes in the order specified by the user to process or visit elements of the DOM object. Result of user-defined class processing may be passed from one class to another within the set.

Claims (14)

1. A method in a data processing system for processing a JAVASERVER page, the method comprising:

translating the JAVASERVER page into a document object model object, the document object model object including a set of nodes;

configuring a set of visitor classes for invocation in a selected sequence;

processing the document object model using the set of visitor classes in the selected sequence to perform a desired set of custom functions on the document object model, wherein the processing step includes invoking methods in the set of visitor classes on each node in the set of nodes in the selected sequence; and

storing results, as processing the document object model object occurs, by selected method in the set of visitor classes, in a hash map, wherein the results in the hash map are used by subsequently invoked methods, wherein the subsequently invoked methods do not convert the results into a second document object model object.

2. The method of claim 1 further comprising:

validating syntax in the JAVASERVER page.

3. The method of claim 1 , wherein the set of visitor classes for invocation in the selected sequence is defined in a configuration file.

4. The method of claim 3 , wherein the configuration file is an extensible markup language file.

5. The method of claim 3 , wherein the selected sequence is defined in the configuration file.

6. The method of claim 1 , wherein the JAVASERVER page is translated into a document object model object using a document object model generator.

7. The method of claim 2 , wherein the JAVASERVER page is validated using a JAVASERVER page translator.

8. The method of claim 7 , wherein the JAVASERVER page translator invokes a visitor class to validate elements in the document object model object against a syntax for a JAVASERVER page specification.

9. The method of claim 1 wherein results from processing using a first visitor class in the set of visitor classes are passed to a second visitor class in the set of visitor classes.

Assignments (3)
CHANGE OF NAME Recorded Dec 20, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058553/0802 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 9, 2012
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: FACEBOOK, INC.
Reel/Frame 028015/0882 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 5, 2003
From: BACKHOUSE, RICHARD ANDREW; JOHNSON, SCOTT DILWORTH
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 014685/0133 →
Continuity (1)
Related Publication 20050097522A1 · May 5, 2005