Michael Jouravlev ha scritto:
Using actions is a totally legitimate way to build composite page.

I disagree, to build composite pages I will use "composite view" pattern implementation, such as Tiles and Sitemesh. I think that using actions as a way to build composite page breaks the MVC pattern, because actions are not designed for this use.

Does not Tiles do the same? (I don't use
Tiles so I don't know for sure.)

With Struts-Tiles the TilesRequestProcessor is used almost as a front controller for Tiles requests. With Tiles 2 the rendering is almost completely in the hands of tag libraries. Anyway with Tiles you can use any kind of path (e.g. paths to JSP pages or action mappings), therefore you can compose pages by using an action as a renderer of a piece of a page.

Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to