--- I keep getting the impression that I've missed something in my understanding of how and more importantly why --- I want to understand, not just do things blindly.
I understand that the ActionForm is intended to STORE and VALIDATE USER-ENTERED data (off the struts page)... but then there seems to be a big hole in the functionality of struts. How do you get to the point of having a person select inventory and purchase it if you can't first display that inventory?
No, I think that in trying to provide a more general answer, Hubert and I may have overcomplicated things. It's also hard sometimes after doing something for a long time to remember which parts are less than obvious to a new user.
Jack wrote:
I may be wrong, Joel, but I think Joe and Hubert are thinking of you instantiating a form that is not listed in your action mapping. You can readily figure out why they think this way.
Yes, I've been harping about what I think are insufficiencies in how Struts helps you set up pages for a while, which again, is part of why I overcomplicated things for you. In the case where you have an "input form" with one kind of data (say, a search form), and on the destination page, you want to prepare a form with different kind of data (say, an "edit details" form), then you need a form that isn't listed in your action mapping for the prepopulation.
However, in your diagram, it appears that you're talking about a simpler case. In this case, just set up <action> elements that have the right "name" (linking to a <form-bean>) and then the ActionForm which is passed to your action's execute will be the one you need to populate.
Remember that the way that <html:form> identifies a bean to use to back form fields is to look up the <action> mapping for the form's destination. Therefore, this mapping should have the same "name" attribute as your "setup" action mapping.
I don't know if that clarifies things in any fashion. I hope so!
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]