{
response.sendError(404);
return;
}
Todo todo = null;
try
{
todo = (Todo)rc.getConsumer().consume(rc);
}
catch(ValidationException ve)
{
request.setAttribute(Constants.MSG, ve.getMessage());
request.setAttribute(Constants.ACTION, Constants.ACTION_CREATE);
dispatchToFormView((Todo)ve.getPojo(), rc, getWebContext());
return;
}
todo.setUser(user);
boolean created = _todoDao.create(todo);
if(created)
{
/*request.setAttribute(Constants.MSG, Feedback.TODO_CREATED.getMsg());