On 1/6/06, Ted Husted <[EMAIL PROTECTED]> wrote: > > On 1/6/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > I expect I'm just groggy, but why does the presentation side need to > > know about model/persistence stuff? > > Client side validation.
You also need to know the model data type for conversion, in both directions (modelDataType->String for rendering, String->modelDataType for updating). Struts Action Framework currently splits responsibilities for this ... the tags do conversion automatically on rendering, but it is up to the application's business logic to deal with it for updating. In most of the other technologies (JSF, SpringMVC, Tapestry, WW) the responsibility all belongs to the view tier. > -T. Craig