struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Mapping multiple enums to a nested object
Date Mon, 24 Sep 2007 13:26:03 GMT
--- Guillaume Bilodeau <> 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 "" 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"/>.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message