// Make sure we have a valid method name to call. // This may be null if the user hacks the query string. if (name == null) { return this.unspecified(mapping, form, request, response); }
// Identify the method object to be dispatched to Method method = null; try { method = getMethod(name);
} catch (InvocationTargetException e) { // Rethrow the target exception if possible so that the // exception handling machinery can deal with it Throwable t = e.getTargetException(); if (t instanceof Exception) { throw ((Exception) t); } else { String message = messages.getMessage("dispatch.error", mapping .getPath(), name); log.error(message, e); throw new ServletException(t); } }
// Return the returned ActionForward instance return (forward);