sunlabs.brazil.template

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Brazil » sunlabs.brazil.template 
sunlabs.brazil.template
Java Source File NameTypeComment
AddHeaderTemplate.javaClass Template class for adding arbitrary mime headers to a reply. Add a header onto the response, removing the tag from the HTML. <addheader name1=value1 name2=value2 ...> where name is the name of an HTTP header, and value is its value.
BSLTemplate.javaClass The BSLTemplate takes an HTML document with embedded "BSL" markup tags in it and evaluates those special tags to produce a standard HTML document.

BSL stands for Brazil Scripting Language.

ChangedTemplate.javaClass 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.javaClass Template class for extracting content out of remote html page This class is used by the TemplateHandler, 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 sunlabs.brazil.filter.ReplaceFilter , The plan is to snag the title and the content, and put them into request properties.
CountTemplate.javaClass SAMPLE Template class for counting links and images in a page.
DebugTemplate.javaClass Template class for printing stuff to stderr (for template debugging) This class is used by the TemplateHandler

A new HTML tag, <debug> is defined.

DirectoryTemplate.javaClass Put current directory information (based on the URL) into the request properties.
FormClientTemplate.javaClass [Deprecated, use the FormTemplate and ConfigFileHandler instead]
SAMPLE Template class for substituting Default values into html forms The data is retrieved from the client, and sent back to the client later on.
FormTemplate.javaClass Template class for substituting Default values into html forms This class is used by the TemplateHandler. The default values in form tags are replaced by the server property that matches the field name.
HighlightTemplate.javaClass Template class for highlighting text that matches a regular expression. All text between html/xml entities is matched against a regular expression. For each portion of text that matches the expression, a pair of html/xml tags is added on either side of all matched text. Highlighting is automatically turned off inside of head, script, style, and server tags.

Properties.

IncludeTemplate.javaClass Template class for substituting html pages into an html page. This class is used by the TemplateHandler.
ModifiedTemplate.javaClass Template class for computing last-modified times for content that is processed through templates.

For traditional web content that is stored in a file, it is easy to keep track of the last time the content changed, simply by looking at the modify-time attribute of the file.

NoImageTemplate.javaClass SAMPLE Template class for removing all images from a web page, and replacing them with their alt strings This class is used by the TemplateHandler Each image is replaced by a text string defined by the server property "template", which the first "%" replaced by the contents of the alt attribute.
PropsTemplate.javaClass 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".
headers
The mime headers are placed into the request object, prefixed by the value assigned to "headers".
RedirectTemplate.javaClass
RewriteContext.javaClass A variant containing instance variables that may be referenced by rewriting filters.
SetTemplate.javaClass Template (and handler) class for Setting a value into the request props. This class is used by the TemplateHandler.

The tag<set> is processed with the following attributes:

name=value
The name of the entry to set in the request properties.
value=value
The value to set.
SqlTemplate.javaClass Sample Template class for running SQL queries via jdbc and placing the results into the request properties for further processing.

Foreach session, a connection is made to an sql database via jdbc. Session reconnection is attempted if the server connection breaks. An SQL query is issued, with the results populating the request properties. The following server properties are used:

driver
The name of the jdbc driver class for the desired database. Currently, only one driver may be specified. (e.g.
Template.javaClass Parent for all classes that are templates.
TemplateHandler.javaClass The TemplateHandler reads a template file from the document root, based on the URL, and passes the content through one or more template filters.

The following configuration parameters are used to initialize this Handler:

prefix
Only URLs beginning with this string will be candidates for template processing.
TemplateRunner.javaClass Class for processing html templates. An html template is an ordinary html string, with additional application specific tags added (sort of like XML).
TOCTemplate.javaClass 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.javaClass Template class for dynamically generating a navigation bar by looking at portions of the url. Given url: /main/next/last/foo.html Generate the request properties for the directories: main, next, and last. The properties will be:
 NAV.main=/main/
 NAV.next=/main/next/ ....
 NAV.=main/next/....
 
These properties may be incorporated into web pages using the BSLTemplate's <foreach> tag, using a delimeter of "/" to iterate over the listings.

The follow request properties are consulted:

prepend
Use as a prefix on the property name, instead of "NAV.".
includeDir
Normally, if the URL refers to the directory ( e.g.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.