Re: Calling OGNL static method with date argument issue

2010-11-30 Thread Li Ying
What is the error message?

And, how did you defined the property "today"?
Is it the same data type as the static method param?

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Calling OGNL static method with date argument issue

2010-11-30 Thread Ken McWilliams
In my jsp I have two dates ("today" and "expiryDate") the following
works in the JSP:



Now I created two static methods (In a Class called
dateUtils.DateRange):
/* Calling the following from my JSP:
*
* Works just fine...
*/
public static int numTest(int num) {
   return num + 5;
}

/* Calling the following from my JSP:
* 
* 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