/**
* {@inheritDoc}
*/
@Override
public Resolution execute(InterceptorChain chain) throws Exception {
ActionContext context = ActionContext.get();
Action action = chain.getAction();
Class<? extends Action> actionClass = action.getClass();
for (Field field : actionClass.getFields()) {
Class<?> type = field.getType();
if (type == String.class) {
field.set(action, context.param(field.getName()));
} else if (type == List.class) {
// TODO
}
}
return chain.execute();