|Publication number||US7836395 B1|
|Application number||US 09/543,952|
|Publication date||16 Nov 2010|
|Filing date||6 Apr 2000|
|Priority date||6 Apr 2000|
|Publication number||09543952, 543952, US 7836395 B1, US 7836395B1, US-B1-7836395, US7836395 B1, US7836395B1|
|Inventors||Arthur R. Francis, Brad B. Topol|
|Original Assignee||International Business Machines Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (28), Non-Patent Citations (7), Referenced by (2), Classifications (9), Legal Events (5)|
|External Links: USPTO, USPTO Assignment, Espacenet|
1. Technical Field
The present invention is directed to a system, apparatus and method for the transformation of Java server pages into formats for various pervasive computing (PvC) devices.
2. Description of Related Art
The use of Java Server Pages (JSPs) for the generation of dynamic HyperText Mark-up Language (HTML) content is becoming more popular. JSP provides a methodology by which information related to the content and information related to the presentation of the content may be separated. For example, JSP provides a <bean> tag which is utilized to obtain content, such as Java applets, while HTML tags are used to specify presentation of the content.
A problem arises in these prior JSPs in that they are designed with the assumption that the presentation of the content will be rendered in a browser that executes on a desktop workstation with a full-sized, high resolution, full-color monitor. As the use of mobile handheld pervasive computing (PvC) devices becomes more prevalent, the assumption used in the design of JSPs becomes a stumbling block since there is a need to deliver the JSP to a variety of PvC devices whose browsing screen size capabilities are drastically different from that of a desktop workstation.
One way to address this problem is to have a transcoding proxy server, or servlet, intercept the JSP and transcode it dynamically, i.e., on the fly, as the JSP is being sent to the PvC device. This option results in extra overhead costs incurred each and every time the JSP is invoked.
A second approach to solving this problem is to have a human JSP developer design and create separate JSPs for each and every PvC device one might want to support. This approach has the disadvantage of extra cost required to have the additional JSPs authored by a human developer who needs to be cognizant of the capabilities of the PvC devices he or she intends to support.
Thus, it would be advantageous to have a system, apparatus and method that provides a mechanism by which JSPs may be automatically converted to formats useable by a plurality of PvC devices.
A system, apparatus and method for transforming Java Server Pages (JSPs) into pervasive computing (PvC) device specific JSPs. An original JSP is parsed for JSP tags. The JSP tags are converted to HyperText Mark-up Language (HTML) comment tags. The JSP is then transformed into a PvC device specific JSP by converting the HTML tags in the JSP to HTML tags for a specific PvC device. The HTML comment tags are then parsed for the comment tags having embedded JSP tags. The JSP tags are then restored by removing the HTML comment tag identifiers. A PvC device specific JSP is thus created.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
With reference now to the figures, and in particular with reference to
In the depicted example, server 104 is connected to network 102, along with storage unit 106. In addition, clients 108, 110, 112 and 118 are also connected to network 102. These clients, 108, 110, 112 and 118, may be, for example, personal computers, network computers, personal digital assistants (PDAs), alphanumeric pagers, cellular telephones, and the like. Any communication device, either wired or wireless, that is capable of receiving and displaying a Java Server Page (JSP) is intended to be within the scope of the term “client” as used in this disclosure.
In the depicted example, server 104 provides data, such as boot files, operating system images and applications, and in particular JSPs, to clients 108-118. Clients 108-118 are clients to server 104. Distributed data processing system 100 may include additional servers, clients, and other devices not shown.
In the depicted example, distributed data processing system 100 is the Internet, with network 102 representing a worldwide collection of networks and gateways that use the TCP/IP suite of protocols to communicate with one another. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers consisting of thousands of commercial, government, education, and other computer systems that route data and messages. Of course, distributed data processing system 100 also may be implemented as a number of different types of networks such as, for example, an intranet or a local area network.
Communications links to network computers 108-112 in
Those of ordinary skill in the art will appreciate that the hardware depicted in
The server 200 stores a Java Server Page (JSP) that is designed for presentation on a typical desktop workstation, such as client device 108. The JSP is comprised of, for example, text, images and tags that are used to generate a JSP presentation on a client device when the JSP is downloaded to the client device. For example, the JSP may comprise text, HyperText Mark-up Language (HTML) tags identifying presentation formats of the text, HTML tags identifying in-line image files to be displayed, and JSP tags. JSP tags are used to encapsulate scripting language fragments into an HTML page. JSP pages use JSP tags or scriptlets to generate the dynamic content on the page (the content that changes according to the request, such as requested account information or the price of a specific bottle of wine). The logic that generates the content is encapsulated in tags and JavaBean components, and tied together in scriptlets, all of which are executed on the server side. More information regarding JSP technology and JSP tags may be obtained from the JSP section of the Sun Corporation Web site, which is hereby incorporated by reference.
While the present invention will be described with reference to HTML tags, one of ordinary skill in the art should appreciate that any mark-up language, such as XML, may be utilized without departing from the spirit and scope of the present invention.
JSPs use tags in a similar manner as the HTML tags shown in
The JSP tags are applicable to any client device. Thus, the JSP tags need not be modified when converting a general JSP to a PvC device specific JSP for a PvC device having different capabilities than a desktop workstation. The HTML tags, however, do require modification so that they are consistent with the capabilities of the PvC device to which the JSP is transmitted.
The present invention provides a system, apparatus and method for converting JSPs designed for desktop workstations, into JSPs that are useable by a plurality of PvC devices. The present invention parses a JSP to locate and mask the JSP tags and convert the HTML tags to PvC device specific HTML tags. The method according to the present invention may be implemented, for example, as one or more Java applications, applets, or Java beans resident on a server of a distributed data processing system, such as server 140 or server 200.
The Java beans may be executed when, for example, a system operator designates, via an input device (not shown), that a JSP is to be converted for use by PvC devices. Alternatively, the Java beans may be executed when a request is first received from a PvC device.
For example, with reference to
The server 200 may then search for a stored version of the requested JSP on hard disk 232 corresponding to the PvC device from which the request was received. This search may be based on, for example, filename and filename extension. The various PvC device specific JSPs may be stored under the same filename with different extensions designating the PvC for which the JSP is formatted. Alternatively, the filenames may be different based on the PvC for which they are formatted.
If an appropriate version is available, the JSP is sent to the PvC device. However, if an appropriate version is not available, the server 200 may invoke the Java beans to convert the JSP into a PvC specific JSP for the particular PvC device sending the request. This PvC specific JSP will then be stored on the server and utilized when later requests from similar PvC devices are received.
Next, in phase II of the operation, the resultant file 530 is transcoded into one or more PvC device specific files 540. The JSP tags that are embedded as HTML comment tags remain in the transcoded files 540 as HTML comment tags. The transcoding of the resultant file 530 into PvC specific files 540 involves placing the identified HTML tags into a document object model and performing a transcoding node by node. As is know to those of ordinary skill in the art, a document object model provides a representation of the hierarchical arrangement of document tags in a tree-like structure. Each node of the document object model represents a document tag.
The transcoding of the present invention proceeds through the document object model node by node and converts the HTML tag associated with the node to a corresponding tag in a mark-up language useable by the particular PvC device. For example, the HTML tag may be converted to an equivalent Wireless Mark-up Language (WML) tag or a Handheld Device Markup Language (HDML) tag. Any tags that aren't supported by the mark-up language for the PvC device are removed and replaced with a closest equivalent.
As a part of this processing phase, the occurrence of in-line images will also be transcoded to the resolution of the target device. As a result of the image transcoding process, static representation of the original image will be saved with a new file extension that indicates the image conversion format. In conjunction with the image transcoding process, the links to the images in each of the generated files will be updated to reflect the transcoded file that contains the resolution requirements of the target PvC device.
In the third phase of the operation, the JSP tags are unmasked 550. This phase involves parsing the transcoded files, locating the hidden JSP tags and converting the file back to a valid JSP file. This may be done by parsing the transcoded files, identifying HTML comment tags, determining if the content of the HTML comment tags fit the format of a JSP tag, and removing the HTML comment tag identifiers when saving the transcoded file to thereby restore the JSP tags. In this way, a JSP file is generated that is transcoded for a specific PvC device 560.
While step 605 above is described as generating only the PvC specific JSP for the requesting PvC device, the operation is not limited to such. Rather, the PvC specific JSPs for all supported PvC devices may be generated. Additionally, the PvC specific JSPs may be generated in response to a command received from a user, such as a system operator.
As shown in
If not, the tag must be a JSP tag. The JSP tag is then converted to an HTML comment tag and written to the resultant file (step 707). The process is then repeated until an end of file is encountered (step 708).
Thereafter, it is determined for which PvC devices the JSP will be converted (step 709). Then, for each PvC device, the following steps are performed. The HTML tags in the resultant file are transcoded to PvC device specific tags (step 710). A transcoded file is then stored for the PvC device containing the transcoded HTML tags and resultant file content (step 711). A determination is then made as to whether there are more PvC devices for which the JSP should be transcoded (step 712). If so, the operation returns to step 710. If not, the operation proceeds to phase III.
In phase III, the operation performs the following steps for each of the PvC specific transcoded files that were created. The transcoded file is parsed for HTML comments tags (step 713). A determination is made as to whether a tag is encountered (step 714). If not, the operation continues to parse the transcoded file until an end of file is encountered (step 718) at which time the operation ends.
If a tag is encountered, it is determined whether or not the tag is an HTML comment tag (step 715). If not, the operation continues to parse the transcoded file until an end of file is encountered (step 718) at which time the operation ends. If so, a determination is made as to whether the HTML comment tag contains a JSP tag (step 716). If not, the operation goes to step 718. If so, the operation removes the HTML comment tag identifiers (step 717) and continues to parse the transcoded file until an end of file is encountered (step 718). The transcoded file with the restored JSP tags is then stored (step 719). After all of the transcoded files are processed, the operation ends.
Thus, the present invention provides a system, apparatus and method for automatically generating PvC specific JSP files from a general JSP file. In this way, the expense of providing JSP files for a variety of PvC devices is greatly reduced.
It is important to note that while the present invention has been described in the context of a fully functioning data processing system, those of ordinary skill in the art will appreciate that the processes of the present invention are capable of being distributed in the form of a computer readable medium of instructions and a variety of forms and that the present invention applies equally regardless of the particular type of signal bearing media actually used to carry out the distribution. Examples of computer readable media include recordable-type media such a floppy disc, a hard disk drive, a RAM, CD-ROMs, and transmission-type media such as digital and analog communications links.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5892900 *||30 Aug 1996||6 Apr 1999||Intertrust Technologies Corp.||Systems and methods for secure transaction management and electronic rights protection|
|US5940844 *||5 May 1995||17 Aug 1999||The Chase Manhattan Bank, Na||Method and apparatus for displaying electronic image of a check|
|US6072598 *||24 Sep 1997||6 Jun 2000||Intel Corporation||Method for enhancing usability of fax on small device|
|US6185586 *||6 Apr 1998||6 Feb 2001||David H. Judson||Content display during idle time as a user waits for information during an internet transaction|
|US6253326||29 May 1998||26 Jun 2001||Palm, Inc.||Method and system for secure communications|
|US6334126 *||24 Aug 1998||25 Dec 2001||Casio Computer Co., Ltd.||Data output system, communication terminal to be connected to data output system, data output method and storage medium|
|US6336124 *||7 Jul 1999||1 Jan 2002||Bcl Computers, Inc.||Conversion data representing a document to other formats for manipulation and display|
|US6336137 *||31 Mar 2000||1 Jan 2002||Siebel Systems, Inc.||Web client-server system and method for incompatible page markup and presentation languages|
|US6339786 *||2 Mar 1999||15 Jan 2002||Matsushita Electric Industrial Co., Ltd.||Terminal device|
|US6343318 *||29 May 1998||29 Jan 2002||Palm, Inc.||Method and apparatus for communicating information over low bandwidth communications networks|
|US6356905 *||5 Mar 1999||12 Mar 2002||Accenture Llp||System, method and article of manufacture for mobile communication utilizing an interface support framework|
|US6401085 *||5 Mar 1999||4 Jun 2002||Accenture Llp||Mobile communication and computing system and method|
|US6430624 *||14 Feb 2000||6 Aug 2002||Air2Web, Inc.||Intelligent harvesting and navigation system and method|
|US6507857 *||10 Mar 2000||14 Jan 2003||Sun Microsystems, Inc.||Extending the capabilities of an XSL style sheet to include components for content transformation|
|US6535896 *||29 Jan 1999||18 Mar 2003||International Business Machines Corporation||Systems, methods and computer program products for tailoring web page content in hypertext markup language format for display within pervasive computing devices using extensible markup language tools|
|US6578192 *||20 Oct 1999||10 Jun 2003||International Business Machines Corporation||Method and system for supporting dynamic document content expressed in a component-level language|
|US6585777 *||19 Jan 1999||1 Jul 2003||Microsoft Corporation||Method for managing embedded files for a document saved in HTML format|
|US6590588 *||29 Oct 1998||8 Jul 2003||Palm, Inc.||Wireless, radio-frequency communications using a handheld computer|
|US6671757 *||26 Jan 2000||30 Dec 2003||Fusionone, Inc.||Data transfer and synchronization system|
|US6675228 *||29 Oct 1999||6 Jan 2004||International Business Machines Corporation||Method and apparatus in a data processing system for generating alternative views of client applications|
|US6694336 *||25 Jan 2000||17 Feb 2004||Fusionone, Inc.||Data transfer and synchronization system|
|US6785730 *||18 Nov 1999||31 Aug 2004||Rebecca S. Taylor||Generic communications protocol translator|
|US6826693 *||9 Sep 1999||30 Nov 2004||Sharp Kabushiki Kaisha||Information transmission apparatus|
|US6847988 *||13 Sep 1999||25 Jan 2005||Hitachi, Ltd.||Service providing system and method which divides a request into plural service requests and provides an integrated service based on service utilization history information in response to the request|
|JPH09222974A||Title not available|
|WO1999061983A2||26 May 1999||2 Dec 1999||Telefonaktiebolaget Lm Ericsson (Publ)||Changing functionality of a module terminal in a wireless network|
|WO2001011905A1||11 Jul 2000||15 Feb 2001||Ericsson, Inc.||Wireless subscriber terminal using java control code|
|WO2001016700A2||16 Aug 2000||8 Mar 2001||Tao Group Ltd.||Translating and executing object-oriented computer programs|
|1||A. Dr. Akon, "Application Server Development by Development Tool-Visual Café 3" E.S. Enterprise Suite for Distributed Objects, Software Design, Japan Gijutuhyourou-sya, Co. 1999, Jun. 18, No. 104, p. 196-201.|
|2||Arata Kurihara, "Web Contents Convert Server-Spyglass Prism 2.0" debut, mobile media magazine, Japan, C-Media Co. 1998, Sep. 13, vol. 6, No. 10, p. 66-67.|
|3||*||Jason Hunter, Java Servlet Programming, Published Nov. 1, 1998 by O'Reilly, accessed from the Internet in 2 parts: Overview pp. 1-5 and 2.6 Java Server Pages pp. 1-15.|
|4||Kunihiro, Saitoh, "Light-up Tag Conversion Server by Increasing Web Access from Cellular Phones," Nikkei Internet Technology, Japan, Nikkei BP Co., Mar. 22, 2000, No. 33, p. 23.|
|5||Rockford Lhotka, "Programmer's Selection", Development for Business Application by Visual Basic 5.0 Business Objects, December 5, 1998, Shoeisha Co., Ltd., p. 160, 214.|
|6||Sanjaya Hettihewa, "Create Active Pages with VBScript", Visual basic Magazine, Japan, Jul. 1, 1997, vol. 3, No. 4, p. 159-166.|
|7||Tatuya, Aoyagi, Java API Tsurezuregusa 13-Paragraph, Java World, Japan, Oct. 29, 1999, vol. 3, No. 12, p. 98-106.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US20100005112 *||1 Jul 2008||7 Jan 2010||Sap Ag||Html file conversion|
|US20110167327 *||18 Jun 2009||7 Jul 2011||Joris Roussel||Method for preparation of a digital document for the display of said document and the navigation within said|
|U.S. Classification||715/239, 715/234|
|International Classification||G06F17/00, G06F17/30, G06F17/21, G06F9/45, G06F12/00|
|6 Apr 2000||AS||Assignment|
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:FRANCIS, ARTHUR R.;TOPOL, BRAD B.;SIGNING DATES FROM 20000405 TO 20000406;REEL/FRAME:010746/0800
|27 Jun 2014||REMI||Maintenance fee reminder mailed|
|28 Oct 2014||FPAY||Fee payment|
Year of fee payment: 4
|28 Oct 2014||SULP||Surcharge for late payment|
|13 Mar 2015||AS||Assignment|
Owner name: LINKEDIN CORPORATION, CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:INTERNATIONAL BUSINESS MACHINES CORPORATION;REEL/FRAME:035201/0479
Effective date: 20140331