I'm about 1 for 4 today, but since you can have a title declared in your definition that you access in your layout, even if you couldnt access the definition's name directly, couldn't you just add another field to the definition that had the same value as the definitiion name?
<definition name=".login" extends="baseLayout">
<put name="myName" value=".login"/>
...
</defintion>and in the layout:
<tiles:getAsString name="myName"/>
or whatever you needed to do with it? i haven't tried it though
-jeff
On Thursday, March 20, 2003, at 02:55 PM, Raible, Matt wrote:
I have the following definition in my tiles-config.xml:
<definition name=".login" extends="baseLayout"> <put name="title.key" value="login.title"/> <put name="heading.key" value="login.heading"/> <put name="content" value="/WEB-INF/pages/welcome.jsp"/> </definition>
baseLayout has a path of:
<definition name="baseLayout" path="/layouts/baseLayout.jsp">
In baseLayout.jsp, is it possible to retrieve the definition's name (i.e.
".login"). I'd like to use this in my <body> tag as an id, so after the
login definition is rendered, I'll have:
<body id=".login">
My reason for wanting this is so I can specify minor CSS tweaks on a per-page basis. This idea was inspired by http://diveintomark.org/archives/2003/01/16/body_ids.html.
Thanks,
Matt
--------------------------------------------------------------------- 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]

