Hi,
I am writing a Jelly script and am looking into - get day of week from Calendar.
In one of the posts I found this:
<core:invokeStatic className="java.util.Calendar" method="getInstance" var="CalendarField"/>
<core:invoke on="${CalendarField}" method="setTime" >
<core:arg type="java.util.Date" value="${FieldValue}"/>
</core:invoke>
<core:invoke on="${CalendarField}" method="get" >
<core:arg type="int" value="${CalendarField.DAY_OF_WEEK}" />
</core:invoke>
<log:warn>14:${CalendarField.DAY_OF_WEEK}</log:warn>
</core:forEach>
Whan used, I found this error - An int instance cannot be null. COuld somebody please help?
Thanks,
Rajani