Juan, I think I made a mistake (sort of) when I shared some of this code. I didn't realize you don't need the dispatch field (or whatever you want to name it) in the actual DynaActionForm or an ActionForm. I notice that the UserDTO doesn't have the dispatch member in it, so maybe the PropertyUtils is looking for to convert that field from the DynaActionForm? (Not sure though just a guess since I haven't used PropertyUtils ). Try just removing the <form-property name="dispatch" type="java.lang.String"/> from the DyanActionForm and see what happens.
Rick On Wednesday, June 12, 2002, 11:15:40 AM, Juan wrote: JASL> I am using a DynaActionForm: <form-bean name="userForm" JASL> dynamic="true" JASL> type="org.apache.struts.validator.DynaValidatorForm" > JASL> <form-property name="id" type="java.lang.String"/> JASL> <form-property name="firstName" type="java.lang.String"/> JASL> <form-property name="lastName" type="java.lang.String"/> JASL> <form-property name="dispatch" type="java.lang.String"/> JASL> </form-bean> JASL> I want to perform the following in my action: JASL> DynaActionForm f = (DynaActionForm)form; JASL> User user = new User(); JASL> try{ JASL> PropertyUtils.copyProperties(user, f); JASL> } JASL> catch(Exception e){...} JASL> My user object is composed as follows: JASL> package ob.users; JASL> public class UserDTO { JASL> private String firstName; JASL> private String lastName; JASL> private Integer id; JASL> public java.lang.String getFirstName() { JASL> return firstName; JASL> } JASL> public Integer getId() { JASL> return id; JASL> } JASL> public java.lang.String getLastName() { JASL> return lastName; JASL> } JASL> public void setFirstName(java.lang.String value) { JASL> firstName = value; JASL> } JASL> public void setId(Integer value) { JASL> id = value; JASL> } JASL> public void setLastName(java.lang.String value) { JASL> lastName = value; JASL> } JASL> } JASL> And I keep on getting Error creating DTO -- java.lang.NoSuchMethodException: JASL> Unknown property 'class' JASL> I am relatively new using the bean utils package and I didn't find anything JASL> in the archives. Can anyone tell me what I'm doing wrong. JASL> Thanks in advance JASL> ********************************************** JASL> Juan Alvarado JASL> Internet Developer -- Manduca Management JASL> (786)552-0504 JASL> [EMAIL PROTECTED] JASL> AOL Instant Messenger: [EMAIL PROTECTED] JASL> -- JASL> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> JASL> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Rick mailto:[EMAIL PROTECTED] "I wish I had a dollar for every time I spent a dollar, because then, Yahoo!, I'd have all my money back." -Jack Handey -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>