In my jsp I have two dates ("today" and "expiryDate") the following works in the JSP: <s:date name="today" format="yyyy-MM-dd" /> <s:date name="expiryDate" format="yyyy-MM-dd" />
Now I created two static methods (In a Class called dateUtils.DateRange): /* Calling the following from my JSP: *<s:property value="@dateutils.datera...@numtest(5)"/> * Works just fine... */ public static int numTest(int num) { return num + 5; } /* Calling the following from my JSP: * <s:property value="@dateutils.datera...@datetest(today)"/> * DOES NOT WORK */ public static Date dateTest(Date date) { date.setYear(1900); return date; } Anyone know what's going wrong? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org