At 11:00 AM +0200 9/17/06, Pierre Bernard wrote:
public void refuseNewSession(boolean flag) {
... it's refuseNewSessions(...) -- plural, with an s ... Gav
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list
Hello
Can you write an exemple??
Thank!!
Eric
--- Pierre Bernard [EMAIL PROTECTED] a écrit :
Hi!
There are several ways of doing this.
One would by to override refuseNewSessions(flag) to just do nothing
when passed a true value on a Saturday or Sunday.
Best,
Pierre
- - -
public void refuseNewSession(boolean flag) {
if (flag) {
GregorianCalendar calendar = new GregorianCalendar();
int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);
if ((dayOfWeek == Calendar.SATURDAY) || (dayOfWeek ==
Calendar.SUNDAY)) {