try {
dispatchMethod = this.getClass().getMethod("action", new Class[]{HttpServletRequest.class, HttpServletResponse.class});
} catch (Exception e1) {
Logger.error(this.getClass(), "Trying to get method:" + cmd);
Logger.error(this.getClass(), e1.getMessage(), e1.getCause());
throw new DotRuntimeException(e1.getMessage());
}
}
try {
dispatchMethod.invoke(this, new Object[]{request,response});
} catch (Exception e) {
Logger.error(this.getClass(), "Trying to invoke method:" + cmd);
Logger.error(this.getClass(), e.getMessage(), e.getCause());
throw new DotRuntimeException(e.getMessage());
}
}
}