Ok, as I said I'm new to Struts2 so maybe I made some wrong assumptions. Please correct me if I'm wrong:
1- I'm using "food.name" as the text field key - not as its name - so a localized label will be shown next to it. 2- I thought the action itself was pushed on the value stack and that one could reference and bind parameters to nested objects in the JSP. Am I mistaken? Thanks for your help, GB newton.dave wrote: > > --- Guillaume Bilodeau <[EMAIL PROTECTED]> wrote: >> Yes it was deliberate. I'm not sure I see the >> advantages of flattening my action *and* my request >> object, for now I'd rather keep this nested as it >> currently is. Of course I'll change my mind if >> given the right counter-arguments :) > > The most compelling counter-argument is that > getModel() doesn't expose anything to the JSP unless > you implement ModelDriven. > > You reference "food.name" etc. on your form but don't > expose anything named "food", which is what Adam was > referring to. > > Even if you *did* implement ModelDriven you would > still not be exposing anything named "food" to the > JSP: the result of the getModel() call is pushed on to > the stack, properties are accessed by name (without > the bean name), like <s:property value="name"/>. > > d. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Mapping-multiple-enums-to-a-nested-object-tf4505238.html#a12860163 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]