Rob Prime, thanks a lot. It was all about overriding my toString() in the right class. I thought it should be in my Action class where the code logic is , but once I put in the class which contains the setter and getters, it worked.