SimpleDateFormat f = new SimpleDateFormat("yyyy-mm-dd");
String dateString = f.format(cal.getTime());
Date currdate = new Date();
currdate = (Date)f.parse(dateString);
OAMessageDateFieldBean oamessagedatefieldbean = (OAMessageDateFieldBean)oawebbean.findIndexedChildRecursive("CorporateRateDate");
oamessagedatefieldbean.setValue(oapagecontext, currdate);
String dateString = f.format(cal.getTime());
Date currdate = new Date();
currdate = (Date)f.parse(dateString);
OAMessageDateFieldBean oamessagedatefieldbean = (OAMessageDateFieldBean)oawebbean.findIndexedChildRecursive("CorporateRateDate");
oamessagedatefieldbean.setValue(oapagecontext, currdate);