{
// TODO: Catch this error
return;
}
IPathable ip = pc.getObject(tagKey);
if(ip == null)
{
// TODO: Catch this error
return;
}
// Rebuild action object with value from form.
Action action = Action.buildAction(ip, actionType);
if(action == null)
{
// TODO: Catch this error, operation not permit
return;
}
for(Field field:action.getFieldsList())
{
String value = req.getParameter(field.name);
if(value != null)
{
field.defaultValue = value;
}
}
if(!ip.applyAction(action))
{
// TODO: Found a solution to send failure return to the remplate, in the redirection
}
resp.sendRedirect(redirect);