I have an ActionForm bean that is used for more than one form, as the two forms have many common fields. In the Struts mapping configuration file, I have given it "session" scope, so that it will retain the values entered into one form or the other, and those values will always display when the user goes to one form or the other. The problem is that Struts calls the reset method on the form bean prior to bringing up a form, so the values are not retained. My understanding is that the reset method should be used to set all of the default values for the form bean, which is what I have done. My intention is that these default values get displayed the first time, and only the first time, either of my two forms is displayed.
I am contemplating two solutions to this problem. One is to just set the default values in the construtor of the form bean, and not to implement the reset method, so that it does nothing. The other is to somehow prevent Struts from calling the reset method --- is there some way to configure whether the reset method gets called or not ? I can not find this documented anywhere. Which of these two solutions is recommended -- or is there another solution to the problem ? Thanks, Charlie -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>