OGNL with Field and Method
Calling Method/Field using OGNL Java code utilityObj.makeRandomNumber() utilityObj.getRandomNumberValue() OGNL code makeRandomNumber() getRandomNumberValue() randomNumberValue Here we are assuming that the utilityObj is available in the ValueStack. Static Field @fullClassName@(property or methodName) Static Method @com.data.constants.UtilityClass@getDayName() but here if we assume some object in the valuestack available and we want to access its static properties then @vs@USERNAME @vs@getTodaysDate() here 'vs' is the symbol for the valuestack.