If I understand your scenario then the error occurs when BeanUtil is copying properties from the AddressAction to the UserAction. Check that you do not have methods with the same name but with different/incompatible types on the AddressAction and UserAction. Perhaps that could cause the ClassCastException. You should also have a better log of the exception in your logfile where you can see the stacktrace of the ClassCastException. That might give more clues to what the problem is.
Cheers, Dick [EMAIL PROTECTED] ----- Original Message ----- From: "garrett.sean" <[EMAIL PROTECTED]> To: "Opensymphony-Webwork (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 12:27 PM Subject: [OS-webwork] user question > Hi > > I apologise in advance if this is something obvious that I've missed in the docs, I > have searched the wiki and the mailing list archives for it but I didn't find > anything. I'll try and explain this as best I can so please bear with me. > Since I have User objects and a UserAction class I'm going to refer to the person > working with the web app as an operator to differentiate. > > using ww1. > > Firstly I have two actions UserAction and AddressAction, both of these implement > CommandDriven. > > the views.properties refs for these are as follows: > > admin.auth.user.edit.action=com.owlco.auth.action.UserAction!Edit > admin.auth.user.edit.success=/admin/auth/user/edit.jsp > admin.auth.user.edit.error=/admin/error.jsp > > admin.auth.address.edit.action=com.owlco.auth.action.AddressAction!Edit > admin.auth.address.edit.success=/admin/auth/address/edit.jsp > admin.auth.address.edit.error=/admin/auth/address/edit.jsp > > admin.auth.address.save.action=com.owlco.auth.action.AddressAction!UpdateSave > admin.auth.address.save.success=admin.auth.user.edit.action > admin.auth.address.save.error=/admin/auth/address/edit.jsp > > > When an operator is begins Editing a user record 'admin.auth.user.edit.action' is > called to populate user/edit.jsp > on user.jsp the Addresses associated with that user are listed in a table with a <a > href=""> calling 'admin.auth.address.edit.action' with a GET passing the relevant id > to it. all of this works fine. > > the problem is I want 'admin.auth.address.edit.action' (called when saving) to chain > back to 'admin.auth.user.edit.action' passing the userid back to it somehow. when I > chain back (without passing anything at this stage, which may be the problem) I get > the following error : > > Could not execute action [admin.auth.address.save]:Bean copy > failed:java.lang.IllegalArgumentException: [EMAIL PROTECTED] > > now if I change 'admin.auth.address.save.success' to point at a JSP page everything > works fine (other than it not loading the user data). > > is there a way to do this other than bounce to a 'blank' JSP that redirects to > 'admin.auth.user.edit.action' passing the relevant values ? > > I hope I've explained this in an understandable way, and given enough info :) > ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork