Achieving application-specific document content by transcoding using Java Server Pages
AssigneeInternational Business Machines Corporation
InventorsJohn Raithel Hind, David B. Lindquist, Brad B. Topol, Ajamu A. Wesley
Life of this patent
Estimating the term…
Abstract
A method, system, and computer program product for using Java Server Pages to enable transcoding the content of a document requested by a client, in order to tailor the output document according to application-specific characteristics. In particular, the present invention enables the JSP author to override input source request characteristics and to specify transcoding hints to be used by a transcoding filter for selecting an appropriate style sheet.
Claims19
A computer program product embodied on one or more computer readable media readable by one or more computing systems in a computing environment, for achieving application-specific document content using Java Server Pages, comprising:
- computer-readable program code means for retrieving an input Java Server Pages (JSP) document representing a response to a user request, said input document specifying (1) one or more transcoding directives, wherein each of said transcoding directives comprises one or more overriding keyword/value pairs, each of said overriding keyword/value pairs specifying application-specific information for overriding corresponding information of a target context that is applicable to said user request and (2) one or more transcoding hints, each of said transcoding hints specifying information usable or identifying one or more style sheets that are applicable to said input document;
- computer-readable program code means for processing said one or more transcoding directives, further comprising:
- computer-readable program code means for locating said one or more transcoding directives in said input document;
- computer-readable program code means for determining said target context that is applicable to said user request, said target context comprising one or more context keyword/value pairs;
- and
- computer-readable program code means for comparing each of said overriding keyword/value pairs to said context keyword/value pairs and replacing a context value from a selected one of said context keyword/value pairs with an overriding value from a selected one of said overriding keyword/value pairs when an overriding keyword of said selected overriding pair corresponds to a context keyword of said selected context pair;
- computer-readable program code means for using said context keyword/value pairs, as modified by said computer-readable program code means for comparing and replacing, to generate a tailored output version of said input document;
- and
- computer-readable program code means for using said transcoding hints to search for style sheets to use in further refining said tailored output version.
A system for achieving application-specific document content using Java Server Pages in a computing environment, comprising:
- means for retrieving an input Java Server Pages (JSP) document representing a response to a user request, said input document specifying (1) one or more transcoding directives, wherein each of said transcoding directives comprises one or more overriding keyword/value pairs, each of said overriding keyword/value pairs specifying application-specific information for overriding corresponding information of a target context that is applicable to said user request and (2) one or more transcoding hints, each of said transcoding hints specifying information usable for identifying one or more style sheets that are applicable to said input document;
- means for processing said one or more transcoding directives, further comprising:
- means for locating said one or more transcoding directives in said input document;
- means for determining said target context that is applicable to said user request, said target context comprising one or more context keyword/value pairs;
- and
- means for comparing each of said overriding keyword/value pairs to said context keyword/value pairs and replacing a context value from a selected one of said context keyword/value pairs with an overriding value from a selected one of said overriding keyword/value pairs when an overriding keyword of said selected overriding pair corresponds to a context keyword of said context pair;
- means for using said context keyword/value pairs, as modified by said means for comparing and replacing, to generate a tailored output version of said input document;
- and
- means for using said transcoding hints to search for style sheets to use in further refining said tailored output version.
A method for achieving application-specific document content using Java Server Pages in a computing environment, comprising the steps of:
- retrieving an input Java Server Pages (JSP) document representing a response to a user request, said input document specifying (1) one or more transcoding directives, wherein each of said transcoding directives comprises one or more overriding keyword/value pairs, each of said overriding keyword/value pairs specifying application-specific information for overriding corresponding information of a target context that is applicable to said user request and (2) one or more transcoding hints, each of said transcoding hints specifying information usable for identifying one or more style sheets that are applicable to said input document;
- processing said one or more transcoding directives, further comprising the steps of:
- locating said one or more transcoding directives in said input document;
- determining said target context that is applicable to said user request, said target context comprising one or more context keyword/value pairs;
- and
- comparing each of said overriding keyword/value pairs to said context keyword/value pairs and replacing a context value from a selected one of said context keyword/value pairs with an overriding value from a selected one of said overriding keyword/value pairs when an overriding keyword of said selected overriding pair corresponds to a context keyword of said selected context pair;
- using said context keyword/value pairs, as modified by said comparing and replacing step, to generate a tailored output version of said input document;
- and
- using said transcoding hints to search for style sheets to use in further refining said tailored output version.
A method of transcoding content in an application-specific manner, comprising steps of:
- receiving a user request for content, wherein said request identifies executable logic expressed in a server-side scripting language;
- executing said executable logic, responsive to receiving said request, thereby generating a dynamic version of said content, wherein said dynamic version includes one or more transcoding hints, each of said transcoding hints specifying application-specific suggestions for subsequently locating style sheets that are appropriate for transcoding said dynamic version;
- subsequently using said transcoding hints to locate one or more appropriate style sheets for transcoding said dynamic version;
- and
- using said located style sheets to transcode said dynamic version in an application-specific manner.
A system for transcoding content in an application-specific manner, comprising:
- mean for receiving a user request for content, wherein said request identifies executable logic expressed in a server-side scripting language;
- means for executing said executable logic, responsive to receiving said request, thereby generating a dynamic version of said content, wherein said dynamic version includes one or more transcoding hints, each of said transcoding hints specifying application-specific suggestions for subsequently locating style sheets that are appropriate for transcoding said dynamic version;
- means for subsequently using said transcoding hints to locate one or more appropriate style sheets for transcoding said dynamic version;
- and
- means for using said located style sheets to transcode said dynamic version in an application-specific manner.
A computer program product embodied on one or more computer-readable media readable by one or more computing systems in a computing environment, for transcoding content in an application-specific manner, comprising:
- computer-readable program code means for receiving a user request for content, wherein said request identifies executable logic expressed in a server-side scripting language;
- computer-readable program code means for executing said executable logic, responsive to receiving said request, thereby generating a dynamic version of said content, wherein said dynamic version includes one or more transcoding hints, each of said transcoding hints specifying application-specific suggestions for subsequently locating style sheets that are appropriate for transcoding said dynamic version;
- computer-readable program code means for subsequently using said transcoding hints to locate one or more appropriate style sheets for transcoding said dynamic version;
- and
- computer-readable program code means for using said located style sheets to transcoding said dynamic version in an application-specific manner.
Dependencies are inferred from the claim text.