--- 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]

Reply via email to