On Apr 25, 2006, at 5:15 PM, Michael Jouravlev wrote:

If it is in the xml file, it is not dynamic anymore, is it?

No it's not.

But if the value is a really dynamic one, say
you read it from a database, then you cannot set it in the definition
file anyway, can you?

No. It would have to be derived on the page, in the action beforehand, or in a controller class (see below).

if I have a
composite page out of three JSP files, how would I run their
corresponding setup actions before the page is composed?

Instead of including JSP pages I would include Struts actions (Will it
work with Tiles? I haven't tried it yet) like this (seems that I can
use include directive instead of dynamic include tag here):

The thought scares me :-) I haven't tried it like that. Tiles used to allow you to specify a Struts action as a controller. It probably still does but I haven't used that pattern in a long time and I can guarantee that Standalone Tiles will not support that. You should really check out the Controller interface. Sorry, the documentation is non-existent currently, but it's in the pipeline. It allows you to specify a controller class that will be executed before the definition is rendered. In that class you have access to the Tiles Context and whatever else you need. The only drawback is that I don't believe you can specify a controller for each piece of the composite page.

Greg

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

Reply via email to