Category: ATG
-
StringUtils in ATG Dynamo
A hidden gem in ATG Dynamo is the simple, but VERY useful, and totally undocumented StringUtils class. It lives in the atg.core.util package in DAS/lib/classes.jar. It has several methods, but the most commonly used are isEmpty(String) and isBlank(String). Both return a boolean, and are very useful for validating form input and the like. One thing…
-
Constants
What – constants in Java While Java does not have a built-in Constant type, functionally constants are supported through the use of two modifiers: final and static, like this: public static final int NUM_CARDS_IN_DECK=52; First, we define the variable as public, this is not necessary for using the constant within the same class, but is…
-
ATG RSS Generator Droplet
I sat down a few hours ago to start a droplet which would generate an RSS feed based on data in an ATG Repository. Surprisingly, I think I’m done. Basically what it is is a droplet, which you put on an otherwise empty JSP page (it’s important that there is no whitespace on the JSP…
-
ItemToXMLDroplet
This is an extremely simple Droplet with source, a config file, and a sample JSP. All the droplet does it transform a passed-in RepositoryItem into XML and dump it out. It would be handy for vending data to client-side logic in JavaScript or Flash, when you don’t want to write-up a full WebService. You can…
-
Why Oracle makes me nuts
When left to my own devices I tend to use PostgreSQL or MySQL. They’re both free, open source, run on every platform I use, and I understand how to use them, tune them, etc…. However, when I’m building an application and database scripts that will be deployed on Oracle, and using an application which doesn’t…