RE: Pre-populate DynaActionForm

2003-06-13 Thread Wendy Smoak
Joseph wrote: Now I want to do the same thing but use DynaActionForm for my clientInfoForm, what should I do to pre-populate it? (there will be no setters any more) Look at the API docs for DynaActionForm, there are several set methods. Or use BeanUtils.copyProperties to copy the values over

Re: pre-populate nightmare

2002-10-13 Thread Howard Miller
I'm going to answer my own question: create the bean for the target builder page in the session scope, not the request scope. Having several cups of coffee, a walk, and a long think, led me to this logical conclusion (if I want to manipulate a bean that exists in a session data structure,

Re: pre-populate and request scope problem in struts.

2001-08-21 Thread Peter Alfors
I assume that your select tag is expecting to get data from your form object that you had previously placed into the request? When you return to the 'toJsp' page, you will need to place the form object back into the request, or place the form object in the session in the first place. When you

RE: Pre populate

2001-06-11 Thread Upadhye, Sujit (GEAE, Foreign National)
I do the following: 1. Let us say, you want to submit from 'fromPage' and want to do some pre-processing before you give out 'toPage'. 2. In all my Action objects, I have two methods - 'preprocess()' and 'postprocess()'. 3. I submit ALL the requests from 'fromPage' to the Action object

Re: Pre populate

2001-06-11 Thread Ted Husted
Many times pre-processing and post-processing are related, and it can be convenient to handle both in the same Action class. A good way to implement this is to have a seperate Action Mapping for each task (pre-process and post-process). Both mappings would point to the same Action but use