Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Beanutils.copyproperties - No origin bean specified

807569Jun 3 2006
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);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2006
Added on Jun 3 2006
0 comments
342 views