private void _viewWorkflowTask(ActionRequest req, ActionResponse res,
PortletConfig config, ActionForm form, User user) throws Exception {
WorkflowTask task = (WorkflowTask) req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
WorkflowTaskForm taskform = (WorkflowTaskForm) form;
BeanUtils.copyProperties(taskform, task);
if (task.getDueDate() != null) {
Calendar cal = GregorianCalendar.getInstance();
cal.setTime(task.getDueDate());
taskform.setDueDateDay(String.valueOf(cal.get(Calendar.DATE)));
taskform.setDueDateMonth(String.valueOf(cal.get(Calendar.MONTH)));
taskform.setDueDateYear(String.valueOf(cal.get(Calendar.YEAR)));
}
}