It seems that by the time I put the "title", it is too late to affect
the HTML page. Is anyone doing anything like this?
I have a tiles template:
<title><tiles:getAsString name="title"/></title>
Which is invoked from titles-defs.xml:
<definition name=".site.mumble" extends=".site">
<put name="title" value="Locations"/>
<put name="microNav" value=".site.microNav.fooandlocations"/>
<put name="content" value="/jsp/locations.jsp"/>
</definition>
The "locations.jsp" looks like this:
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-tiles" prefix="tiles" %>
<%@ taglib prefix="c" uri="c" %>
<%@ taglib prefix="x" uri="x" %>
<%
String contextPath = request.getContextPath();
%>
<tiles:importAttribute />
c:set var="area">
<c:choose>
<c:when test="${param.area == null}">SF</c:when>
<c:otherwise><c:out value="${param.area}" /></c:otherwise>
</c:choose>
</c:set>
...
But what I'd like to do is set the <title> of the HTML page, based on
the parsed URL parameter (e.g. area=987). The proper title is not known
until the jsp executes, and does a lookup on an xml file. Is this
possible with tiles? How would one do it?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]