Beanutils.copyproperties - No origin bean specified
What is wrong with my code?
What i want to do is transfer the data from my session bean to the actionform which will then be displayed in the jsp.
This is the relevant part of my action
Thanks in advance
HttpSession session = request.getSession();
EditRegisterActionForm editregisterform = (EditRegisterActionForm) form; // get the form bean
Client client = new Client();
//get username from session
session.getAttribute("username");
//call method getUserName from EJB
client = lookupClientFacade().getUserName(username);
//copy data from session bean to actionform
BeanUtils.copyProperties(editregisterform,client);
return mapping.findForward(SUCCESS);