Open Source»
Current Project Interests ::
- Jakarta Turbine Framework
Most of our primary application development currently depends on the
Turbine project. Turbine provides a web application framework for the Java
environment.
Utility Code ::
All the code that Kiasoft publishes from the OpenSource page is released under the Apache Software License unless otherwise noted. We fully support the free distribution of this source code.
All of this code is used within our development framework. Most of these classes should be operable without the calls to Turbine and you should be able to comment out those sections that do and continue to use the code without any problems.
This code has been tested within a production environment and should be fairly stable, however, we don't make any guarantees.
- CsvParser.java :: Extends the code provided from Ostermiller utilities package to allow strict CSV parsing within your java application. Note: This software is protected by the GPL as it is a derivative work of Ostermiller's CSV parser.
- DateManip.java :: DateManip provides some easy to use date manipulation methods as well as date comparison methods.
- LocalDate.java :: LocalDate provides some simple date accessor methods.
- Email.java :: A wrapper class for the Turbine email facilities which helps in creating basic text and html versions of email.
- EmailValidator.java :: A combination of methods I've found incorporated into one email validation routine.
- PdfScreen.java :: PdfScreen helps output pdf binary streams to your web application from Turbine. We have used it successfully with the iText libraries, but should also be useful if you are using FOP or other PDF generation techniques.
-
DateTool.java :: DateTool
provides some simple interfaces for use within your velocity pages
Add to your TurbineResources.properties
# our date tool tool.request.date=com.kiasoft.util.tools.DateToolExamples of use:
$date.getToday() -> outputs todays date
$date.reportDate($dateObject) -> outputs date in MM/DD/YYYY format
$date.displayDate($dateObject) -> outputs date in local date format set in LocalDate class
-
JavascriptTool.java :: JavascriptTool
provides some simple interfaces for quote escapes and line breaks when setting variables for use
with javascript in velocity pages
Add to your TurbineResources.properties
# our javascript tool tool.request.js=com.kiasoft.util.tools.JavascriptToolExamples of use:
var firstName = '$!js.escapeQuotes($!customer.FirstName)' -> will escape any quotes in customer name correctly for javascript
var address = '$!js.fixBreaks($!customer.Address)' -> will convert line returns to proper \n returns in javascript variable
