result = handle(request, response, command.getActionConfig(), e);
}
// dispatch request
if (result != null) {
Dispatcher dispatcher = pluginContext.getDefaultDispatcher();
String name = result.getDispatcher();
if (name == null) {
name = command.getActionConfig().getDispatcher();
}
if (name != null) {
dispatcher = pluginContext.getDispatcher(name);
if (dispatcher == null) {
throw new ServletException("Unknown dispatcher '" + name + "' for action '" + config.toInlineString() + "'");
}
}
dispatcher.dispatch(request, response, result);
}
}