struts1.x---BeanUtils
TestFormBean testformbean = (TestFormBean) form;// TODO Auto-generated Test test=new Test(); try { BeanUtils.copyProperties(test, testformbean); } catch (IllegalAccessException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (InvocationTargetException e) { // TODO Auto-generated catch block e.printStackTrace(); }