java.lang.reflect.Method method = null;
Object obj = null;
try {
method = this.getClass().getMethod("mothodName", new Class[]{ActionMapping.class,
ActionForm.class,
HttpServletRequest.class,
HttpServletResponse.class,
UserObject.class});
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
try{
obj = method.invoke(this.getClass().newInstance(), new Object[]{mapping,form,request,response,userObj});
} catch (Exception e) {
// InvocationTargetException
// IllegalAccessException
// InstantiationException
// IllegalAccessException
e.printStackTrace();
}
09-26
09-26