Hello:

I have a site I am developing that has some pages with direct content
and some where the content comes from a database.

For the direct pages, I have a layout that depends on a pageTitle
attribute in the tiles definition.  Here is an example:

  <definition name="locations.index" extends="layout.back">
    <put name="pageTitle" value="Locations" />
    <put name="content" value="/locations/index.jsp" />
  </definition>

The layout.back embeds the pageTitle into the page using
<tiles:getAsString name="pageTitle" />

For the database driven pages, I am trying to use a generic
definition:

  <!-- Tiles definition of database page -->
  <definition name="page.dbPage" extends="layout.back">
    <put name="content" value="/showPage.jsp" />
  </definition>

With this struts action:
    <action path="/showPage" forward="page.dbPage"/>

When I code the links to the db pages, I put a page parameter
on the action:
      <html:link action="/showPage?page=community" ...

The problem is that the pageTitle depends on the parameter
value and is not fixed.  Is there a way to put a method call
in the tiles-defs.xml so I can pull the correct page title
from the database?

Thanks,
        Neil

--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com


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

Reply via email to