On Tue, 11 Mar 2003 18:51:10 -0600 Dan Allen <[EMAIL PROTECTED]> wrote:
> Two more comments: > > In the second tutorial, you are preparing the employeeForm using the > SetUpEmployeeAction. In doing so, you run > > employeeForm.setDepartment("2"); > > Shouldn't you instead set the default department selection in the > form reset() method? I initially I did have that in the reset method, but then I wanted to show how you could use a SetUpAction to set up stuff in your bean if you wanted to. I also was lazy and didn't feel like explaining the reset method:)... you're right though I should have probably just kept it there. > In regards to the discussion on using Tokens for the forward mapping > keys (such as "success" and "continue") you may also want to note > that doing so allows you to have two tokens point to the same > definition. In short > > Tokens.SUCCESS_KEY = "success"; > > Tokens.CONTINUE_KEY = "success"; > > So you can really play with the means of your Action class without > having to bother the Action class. In short the action class > shouldn't really care what view is choosen or its meaning, it just > deals with the general workflow, such as > > success > failure > continue > redo sigh, yea, the more I think about it I actually really should just use constants there and I'll include your explanation. I'm pissed I didn't include it from the start. Thanks for the comments and suggestions. I appreciate it. -- Rick Reumann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]