Sun and Oracle Community Voices How to Buy Log In United States [Change] English

»  Spotlight Articles
»  Projects
»  Publications
»  People
»  Awards
»  Events
»  Downloads
»  Internships
»  Contrarian Minds
»  About Sun Labs
Brazil project: Package sunlabs.brazil.template

Package sunlabs.brazil.template

Template classes for use with TemplateHandler or TemplateFilter for filtering HTML and XML content.

See:           Description

Class Summary
AddHeaderTemplate SAMPLE Template class for adding arbitrary mime headers to a reply This class is used by the TemplateHandler
BSLTemplate The BSLTemplate takes an HTML document with embedded "BSL" markup tags in it and evaluates those special tags to produce a standard HTML document.
ChangedTemplate This Template adds an icon to HREFs to indicate when the file being referred to is new, changed, or unchanged with respect to the user's session.
ContentTemplate Template class for extracting content out of remote html page This class is used by the TemplateHandler, and is intented for extracting the "content" out of html documents for later integration with a look-and-feel template using one or more of: PropsTemplate, BSLTemplate, or ReplaceFilter, The plan is to snag the title and the content, and put them into request properties.
DirectoryTemplate Put current directory information (based on the URL) into the request properties.
FormTemplate SAMPLE Template class for substituting Default values into html forms This class is used by the TemplateHandler.
IncludeTemplate Template class for substituting html pages into an html page.
PropsTemplate Template class for substituting request properties into an HTML page This class is used by the TemplateHandler The following request properties are used: query The query parameters are placed into the request object, prefixed by the value assigned to "query".
RedirectTemplate Template class for redirecting an html page This class is used by the TemplateHandler
RewriteContext A variant containing instance variables that may be referenced by rewriting filters.
SqlTemplate Sample Template class for running SQL queries via jdbc and placing the results into the request properties for further processing.
Template Parent for all classes that are templates.
TemplateHandler The TemplateHandler reads a template file from the document root, based on the URL, and passes the content through one or more template filters.
TemplateRunner Class for processing html templates.
TOCTemplate Template class for extracting table of contents information out of an html page by examining the "H1" tags, and setting request properties that can be used to build a table of contents.
UrlNavBarTemplate Template class for dynamically generating a navigation bar by looking at portions of the url.
 

Package sunlabs.brazil.template Description

Template classes for use with TemplateHandler or TemplateFilter for filtering HTML and XML content. Each class in this package defines a set of methods for converting new html tags into standard html. The Template interface used to define templates doesn't define the methods used for processing. Instead, the TemplateHandler introspects all of the methods in a template class to determine which ones should be called when HTML tags are seen in the input document.

This is an XML like capability that is backward compatible with existing HTML practice.


Version 2.2, Generated 07/25/00
Copyright (c) 2000, Sun Microsystems.