Consider using Tiles, and then you can incorporate something like:
<tiles:getAsString name="title"/>
into your header. The value for 'title' would then come from your tiles-config.xml file for each different page you extended from your master layout page.
-jeff
On Tuesday, July 29, 2003, at 12:20 PM, John Boyes wrote:
I'm building my first Struts app with a standard header template which will apply to all pages.
The contents of the header template will generally be identical save for a few items (e.g the page
title and heading) which will be individual to each page used by the template.
Ideally I would like the content for each page title and heading to be pulled from my
application.properties xml file, but I'm not sure how to do this, is it possible to do this
dynamically via a message bean for instance? e.g in pseudocode:
<title><bean:message key="thisisadynamicvaluepulledfromsomewhereelse"/></title>
or is there a much easier to do this and I'm barking up the wrong tree altogether?
I'm using JSP 1.2
Any responses gratefully received . . .
Thanks,
John
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]