A 10 minute “Lunch Byte“ in a series designed to help you improve your skills in developing websites using IBM Workplace Web Content Management. This episode focuses on the role and capabilities of a Library in WCM. […]

Render the values of a Map The following code snippet shows how to get the values of a Map (e.g. HashMap) from within a Freemarker template. <#assign m = myMap> <#assign values = m?values> <ul> <#list values as myObject> <li>${myObject.myPropery}</li> </#list> </ul> Render the keys of a Map You can do a similar thing with […]

ERROR CODE LDAPEXCEPTION CONSTANT POSSIBLE CAUSE(S) 0 SUCCESS The operation completed successfully 1 OPERATION_ERROR Invalid syntax for ACI or schema, or inappropriate control for the operation 2 PROTOCOL_ERROR Invalid filter expression on search, or DN on add, modify, or delete 3 TIME_LIMIT_EXCEEDED Either the server’s or the client’s specified search time limit was exceeded 4 […]

abstract (object classes) Abstract classes are used to build other object classes, but never for building direct instances of the class. A special abstract class called top is the ultimate superclass of all object classes. To build a class that doesn’t inherit any attributes, you build a class that is a direct subclass of top. […]

What it means to be a portal and a portlet may be changing. With Google Gadgets, OpenSocial, and Apache Shindig, application functionality can now be delivered to any page on the web, backed by any variety of web and application servers. Using only HTML, JavaScript, and REST/RPC protocols, gadgets are more universal than JSR 168 Portlets and arguably more […]

Did you know that you can get a quick list of db2 commands by typing “db2 ?” on the command line? Following are the DB2 commands from the screen-shot in a form that you can copy and paste: ACTIVATE DATABASE GET CONTACTS RECOVER ADD CONTACT GET/UPDATE DB CFG REDISTRIBUTE DB PARTITION ADD CONTACTGROUP GET/UPDATE DBM […]

This is one of those little problems that seem so simple that any bone-head could figure it out. That’s why I felt particularly stupid for struggling with it. Of course, the first thing I did was Google for the answer and since that did not help initially, I thought I should now post the solution. […]

Following are a list of the standard system properties which can be accessed in Java code by using the System.getProperty methods. For example… System.getProperty(“path.separator”); Property Name Description Java Version file.encoding The character encoding for the default locale 1.1 file.encoding.pkg The package that contains the converters that handle converting between local encodings and Unicode 1.1 file.separator […]