import org.apache.commons.beanutils.BeanUtils;
..
..

	public <T> T setParamegerBean(Class<T> clz) throws InstantiationException, IllegalAccessException, InvocationTargetException{
		T t = clz.newInstance();
		BeanUtils.copyProperties(t, ServletActionContext.getRequest().getParameterMap());
		return t;
	}

+ Recent posts